UNPKG

ember-alexandria

Version:

Document management frontend for the alexandria backend

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