FIX: move main sidebar panel name to constant (#22819)

Small improvement of moving panel name to constant.
This commit is contained in:
Krzysztof Kotlarek 2023-07-27 15:17:13 +10:00 committed by GitHub
parent 83043bd453
commit 7fb4bd3f43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -8,6 +8,7 @@ import {
const COMBINED_MODE = "combined";
const SEPARATED_MODE = "separated";
const MAIN_PANEL = "main";
export default class SidebarState extends Service {
@tracked currentPanelKey = currentPanelKey;
@ -35,7 +36,7 @@ export default class SidebarState extends Service {
setCombinedMode() {
this.mode = COMBINED_MODE;
this.currentPanelKey = "main";
this.currentPanelKey = MAIN_PANEL;
}
get combinedMode() {
@ -43,7 +44,7 @@ export default class SidebarState extends Service {
}
get showMainPanel() {
return this.currentPanelKey === "main";
return this.currentPanelKey === MAIN_PANEL;
}
#reset() {