Merge pull request #5053 from matiseni51/fix-include-label-themeSettings-config

fix: set label in themeSettings.deployButton despite type attribute
This commit is contained in:
Nick O'Leary 2025-02-24 16:08:47 +00:00 committed by GitHub
commit 8837597ff5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -185,13 +185,12 @@ module.exports = {
} }
if (theme.deployButton) { if (theme.deployButton) {
if (theme.deployButton.type == "simple") { themeSettings.deployButton = {};
themeSettings.deployButton = {
type: "simple"
}
if (theme.deployButton.label) { if (theme.deployButton.label) {
themeSettings.deployButton.label = theme.deployButton.label; themeSettings.deployButton.label = theme.deployButton.label;
} }
if (theme.deployButton.type == "simple") {
themeSettings.deployButton.type = theme.deployButton.type;
if (theme.deployButton.icon) { if (theme.deployButton.icon) {
url = serveFile(themeApp,"/deploy/",theme.deployButton.icon); url = serveFile(themeApp,"/deploy/",theme.deployButton.icon);
if (url) { if (url) {