The entry points management technically falls under GUI as well
This commit is contained in:
parent
45e4a54b53
commit
6265695a5c
5 changed files with 1 additions and 1 deletions
27
scripts/external/entries/menu.js
vendored
27
scripts/external/entries/menu.js
vendored
|
@ -1,27 +0,0 @@
|
|||
import Menu from '/scripts/GUI/menus.js';
|
||||
import texts from "/scripts/mapping/read.js";
|
||||
import ManagedSidebar from "./sidebar.js";
|
||||
|
||||
export default class MenuEntry {
|
||||
/* Create all entries. */
|
||||
constructor() {
|
||||
// Add the context menu.
|
||||
this.menu = new Menu({title: (new texts(`entry_contextMenu`)).localized, contexts: [`all`], event: {"onClicked": MenuEntry.onclick}, hidden: true});
|
||||
};
|
||||
|
||||
/*
|
||||
Enable the sidebar.
|
||||
*/
|
||||
enable () {
|
||||
this.menu.show();
|
||||
}
|
||||
|
||||
/* Disable. */
|
||||
disable () {
|
||||
this.menu.remove();
|
||||
}
|
||||
|
||||
static onclick() {
|
||||
new ManagedSidebar();
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue