mirror of
https://github.com/zadam/trilium.git
synced 2025-11-13 08:45:50 +01:00
refactor(client): use common method for checking if launch bar config
This commit is contained in:
@@ -590,6 +590,13 @@ function isUpdateAvailable(latestVersion: string, currentVersion: string): boole
|
||||
return compareVersions(latestVersion, currentVersion) > 0;
|
||||
}
|
||||
|
||||
function isLaunchBarConfig(noteId: string) {
|
||||
return [
|
||||
"_lbRoot", "_lbAvailableLaunchers", "_lbVisibleLaunchers",
|
||||
"_lbMobileRoot", "_lbMobileAvailableLaunchers", "_lbMobileVisibleLaunchers"
|
||||
].includes(noteId);
|
||||
}
|
||||
|
||||
export default {
|
||||
reloadFrontendApp,
|
||||
parseDate,
|
||||
@@ -632,5 +639,6 @@ export default {
|
||||
createImageSrcUrl,
|
||||
downloadSvg,
|
||||
compareVersions,
|
||||
isUpdateAvailable
|
||||
isUpdateAvailable,
|
||||
isLaunchBarConfig
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user