mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
appThemeClass is redundant
This commit is contained in:
parent
bad7b84993
commit
6a67cdd5af
@ -48,11 +48,9 @@ async function getUserThemes() {
|
||||
const ret = [];
|
||||
|
||||
for (const note of notes) {
|
||||
let value;
|
||||
let value = note.getLabelValue('appTheme');
|
||||
|
||||
if (await note.hasLabel('appThemeClass')) {
|
||||
value = await note.getLabelValue('appThemeClass');
|
||||
} else {
|
||||
if (!value) {
|
||||
value = note.title.toLowerCase().replace(/[^a-z0-9]/gi, '-');
|
||||
}
|
||||
|
||||
|
@ -16,7 +16,6 @@ const BUILTIN_ATTRIBUTES = [
|
||||
{ type: 'label', name: 'disableInclusion' },
|
||||
{ type: 'label', name: 'appCss' },
|
||||
{ type: 'label', name: 'appTheme' },
|
||||
{ type: 'label', name: 'appThemeClass' },
|
||||
{ type: 'label', name: 'hideChildrenOverview' },
|
||||
{ type: 'label', name: 'hidePromotedAttributes' },
|
||||
{ type: 'label', name: 'readOnly' },
|
||||
|
Loading…
x
Reference in New Issue
Block a user