refactor(client): use common method for checking if launch bar config

This commit is contained in:
Elian Doran
2025-01-04 21:52:41 +02:00
parent cfeb4eb51f
commit c2315a9341
5 changed files with 16 additions and 5 deletions

View File

@@ -7,6 +7,7 @@ import cssClassManager from "../services/css_class_manager.js";
import { Froca } from '../services/froca-interface.js';
import FAttachment from './fattachment.js';
import FAttribute, { AttributeType } from './fattribute.js';
import utils from '../services/utils.js';
const LABEL = 'label';
const RELATION = 'relation';
@@ -983,7 +984,7 @@ class FNote {
}
isLaunchBarConfig() {
return this.type === 'launcher' || ['_lbRoot', '_lbAvailableLaunchers', '_lbVisibleLaunchers', "_lbMobileRoot", "_lbMobileAvailableLaunchers", "_lbMobileVisibleLaunchers" ].includes(this.noteId);
return this.type === 'launcher' || utils.isLaunchBarConfig(this.noteId);
}
isOptions() {