appThemeClass is redundant

This commit is contained in:
zadam 2019-02-03 15:35:37 +01:00
parent bad7b84993
commit 6a67cdd5af
2 changed files with 2 additions and 5 deletions

View File

@ -48,11 +48,9 @@ async function getUserThemes() {
const ret = []; const ret = [];
for (const note of notes) { for (const note of notes) {
let value; let value = note.getLabelValue('appTheme');
if (await note.hasLabel('appThemeClass')) { if (!value) {
value = await note.getLabelValue('appThemeClass');
} else {
value = note.title.toLowerCase().replace(/[^a-z0-9]/gi, '-'); value = note.title.toLowerCase().replace(/[^a-z0-9]/gi, '-');
} }

View File

@ -16,7 +16,6 @@ const BUILTIN_ATTRIBUTES = [
{ type: 'label', name: 'disableInclusion' }, { type: 'label', name: 'disableInclusion' },
{ type: 'label', name: 'appCss' }, { type: 'label', name: 'appCss' },
{ type: 'label', name: 'appTheme' }, { type: 'label', name: 'appTheme' },
{ type: 'label', name: 'appThemeClass' },
{ type: 'label', name: 'hideChildrenOverview' }, { type: 'label', name: 'hideChildrenOverview' },
{ type: 'label', name: 'hidePromotedAttributes' }, { type: 'label', name: 'hidePromotedAttributes' },
{ type: 'label', name: 'readOnly' }, { type: 'label', name: 'readOnly' },