diff --git a/src/public/app/entities/note_short.js b/src/public/app/entities/note_short.js index 0751a31f4..dfcf8aafa 100644 --- a/src/public/app/entities/note_short.js +++ b/src/public/app/entities/note_short.js @@ -265,10 +265,14 @@ class NoteShort { } getIcon(isFolder = false) { - const iconCassLabels = this.getLabels('iconClass'); + const iconClassLabels = this.getLabels('iconClass'); + const workspaceIconClass = this.getWorkspaceIconClass(); - if (iconCassLabels.length > 0) { - return iconCassLabels.map(l => l.value).join(' '); + if (iconClassLabels.length > 0) { + return iconClassLabels.map(l => l.value).join(' '); + } + else if (workspaceIconClass) { + return workspaceIconClass; } else if (this.noteId === 'root') { return "bx bx-chevrons-right"; @@ -547,9 +551,14 @@ class NoteShort { return labels.map(l => l.value).join(' '); } - getHoistedCssClass() { - const labels = this.getLabels('hoistedCssClass'); - return labels.map(l => l.value).join(' '); + getWorkspaceIconClass() { + const labels = this.getLabels('workspaceIconClass'); + return labels.length > 0 ? labels[0].value : ""; + } + + getWorkspaceTabBackgroundColor() { + const labels = this.getLabels('workspaceTabBackgroundColor'); + return labels.length > 0 ? labels[0].value : ""; } } diff --git a/src/public/app/widgets/tab_row.js b/src/public/app/widgets/tab_row.js index 5cfa2aa22..e853513b1 100644 --- a/src/public/app/widgets/tab_row.js +++ b/src/public/app/widgets/tab_row.js @@ -28,6 +28,7 @@ const TAB_SIZE_MINI = 48; const TAB_TPL = `