Skip to content

Commit

Permalink
fix: closes #11945, fix skins loading if there are no custom skins
Browse files Browse the repository at this point in the history
  • Loading branch information
barisusakli committed Aug 23, 2023
1 parent a43354c commit 438c4c8
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions public/src/admin/appearance/skins.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@ define('admin/appearance/skins', [
$('.custom-skin-settings [data-type="list"] [data-theme]').each((i, el) => {
$(el).attr('data-theme', $(el).attr('data-theme').toLowerCase());
});
Skins.render(bsData);
highlightSelectedTheme(app.config.bootswatchSkin);
}
});
settings.load('custom-skins', $('.custom-skin-settings'));
Skins.render(bsData);
});

$('#save-custom-skins').on('click', function () {
Expand Down Expand Up @@ -89,10 +90,7 @@ define('admin/appearance/skins', [
}, function (html) {
themeContainer.html(html);

if (app.config.bootswatchSkin) {
const skin = app.config.bootswatchSkin;
highlightSelectedTheme(skin);
}
highlightSelectedTheme(app.config.bootswatchSkin);
});
};

Expand Down

0 comments on commit 438c4c8

Please sign in to comment.