mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-12 03:32:30 +08:00
15 lines
427 B
JavaScript
15 lines
427 B
JavaScript
import Component from "./component.js";
|
|
|
|
export default class MobileScreenSwitcherExecutor extends Component {
|
|
setActiveScreenCommand({screen}) {
|
|
if (screen !== this.activeScreen) {
|
|
this.activeScreen = screen;
|
|
|
|
this.triggerEvent('activeScreenChanged', {activeScreen: screen});
|
|
}
|
|
}
|
|
|
|
initialRenderCompleteEvent() {
|
|
this.setActiveScreenCommand({screen: 'tree'});
|
|
}
|
|
} |