mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-09-22 20:28:07 +08:00
16 lines
428 B
JavaScript
16 lines
428 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'});
|
|
}
|
|
}
|