fix: set label in themeSettings.deployButton despite type attribute

This commit is contained in:
matiseni51 2025-02-16 13:44:22 +01:00
parent 21612a5215
commit 88c946d401

View File

@ -185,13 +185,12 @@ module.exports = {
} }
if (theme.deployButton) { if (theme.deployButton) {
themeSettings.deployButton = {};
if (theme.deployButton.label) {
themeSettings.deployButton.label = theme.deployButton.label;
}
if (theme.deployButton.type == "simple") { if (theme.deployButton.type == "simple") {
themeSettings.deployButton = { themeSettings.deployButton.type = theme.deployButton.type;
type: "simple"
}
if (theme.deployButton.label) {
themeSettings.deployButton.label = theme.deployButton.label;
}
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) {