diff --git a/frontend/src/pages/admin/Template/sections/Editor.vue b/frontend/src/pages/admin/Template/sections/Editor.vue
index 462ef8b13d..24b4626f58 100644
--- a/frontend/src/pages/admin/Template/sections/Editor.vue
+++ b/frontend/src/pages/admin/Template/sections/Editor.vue
@@ -110,9 +110,19 @@
-
+
Editor Theme
+ Choose a standard FlowFuse theme or enter the name of a loaded custom theme
+
+
+
@@ -231,7 +241,7 @@ export default {
data () {
return {
timezones: timezonesData.timezones,
- themes: [
+ defaultThemes: [
{ label: 'FlowFuse Light', value: 'forge-light' },
{ label: 'FlowFuse Dark', value: 'forge-dark' }
] // FUTURE: Get from theme plugins
@@ -278,6 +288,14 @@ export default {
return true
}
return SemVer.satisfies(SemVer.coerce(launcherVersion), '>=2.12.0')
+ },
+ themeOptions () {
+ if (this.modelValue?.settings?.theme && !this.defaultThemes.map(th => th.value).includes(this.modelValue.settings.theme)) {
+ // set the custom theme as one of the available options
+ return [...this.defaultThemes, { label: this.modelValue.settings.theme, value: this.modelValue.settings.theme }]
+ }
+
+ return this.defaultThemes
}
}
}