ember-alexandria
Version:
Document management frontend for the alexandria backend
22 lines (18 loc) • 419 B
JavaScript
import { action } from "@ember/object";
import Service from "@ember/service";
import { tracked } from "@glimmer/tracking";
export default class AlexandriaSidePanelService extends Service {
open = true;
/**
* Toggles the side panel open state
*/
async toggle() {
this.open = !this.open;
}
/**
* Closes the sidePanel
*/
async close() {
this.open = false;
}
}