mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-23 10:53:34 +03:00
17 lines
417 B
JavaScript
17 lines
417 B
JavaScript
|
import Component from '@glimmer/component';
|
||
|
import {action} from '@ember/object';
|
||
|
import {tracked} from '@glimmer/tracking';
|
||
|
|
||
|
export default class PublishFlowOptions extends Component {
|
||
|
@tracked openSection = null;
|
||
|
|
||
|
@action
|
||
|
toggleSection(section) {
|
||
|
if (section === this.openSection) {
|
||
|
this.openSection = null;
|
||
|
} else {
|
||
|
this.openSection = section;
|
||
|
}
|
||
|
}
|
||
|
}
|