DEV: Convert connector file to use glimmer component (#59)
Why this change? We've established internally that this is the better way to do things
This commit is contained in:
parent
e452c049ae
commit
4ae24c6edc
|
@ -1,5 +1,5 @@
|
|||
{{d-button
|
||||
<DButton
|
||||
class="btn-primary"
|
||||
action=(action "showTOCOverlay")
|
||||
label=(theme-prefix "table_of_contents")
|
||||
}}
|
||||
@action={{this.showTOCOverlay}}
|
||||
@label={{theme-prefix "table_of_contents"}}
|
||||
/>
|
|
@ -1,7 +1,9 @@
|
|||
export default {
|
||||
actions: {
|
||||
showTOCOverlay() {
|
||||
document.querySelector(".d-toc-wrapper").classList.toggle("overlay");
|
||||
},
|
||||
},
|
||||
};
|
||||
import Component from "@glimmer/component";
|
||||
import { action } from "@ember/object";
|
||||
|
||||
export default class DTocMini extends Component {
|
||||
@action
|
||||
showTOCOverlay() {
|
||||
document.querySelector(".d-toc-wrapper").classList.toggle("overlay");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue