From 6a67cdd5af930d8d57cb0ab3e002d62492004371 Mon Sep 17 00:00:00 2001 From: zadam Date: Sun, 3 Feb 2019 15:35:37 +0100 Subject: [PATCH] appThemeClass is redundant --- src/routes/api/options.js | 6 ++---- src/services/attributes.js | 1 - 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/routes/api/options.js b/src/routes/api/options.js index 4a931af28..86254e78c 100644 --- a/src/routes/api/options.js +++ b/src/routes/api/options.js @@ -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, '-'); } diff --git a/src/services/attributes.js b/src/services/attributes.js index 1cdfea4a6..57825d736 100644 --- a/src/services/attributes.js +++ b/src/services/attributes.js @@ -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' },