fix: Load wizard CSS in render method (v0.6.0-r4)
Fix missing navigation buttons in wizard: - Add explicit CSS loading in render() method - Use L.resource() to load wizard.css - Inject <link> tag into document head - Ensures wizard styling is applied Issue: Navigation buttons (Cancel, Next) not visible Cause: wizard.css was not being loaded Solution: Add CSS file loading in render method Frontend Changes: - htdocs/luci-static/resources/view/crowdsec-dashboard/wizard.js - Add CSS link injection in render() - Load crowdsec-dashboard/wizard.css via L.resource() Version: 0.6.0-4 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
c83304fac8
commit
4c0ab93284
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=luci-app-crowdsec-dashboard
|
||||
PKG_VERSION:=0.6.0
|
||||
PKG_RELEASE:=3
|
||||
PKG_RELEASE:=4
|
||||
PKG_ARCH:=all
|
||||
|
||||
PKG_LICENSE:=Apache-2.0
|
||||
|
||||
@ -64,6 +64,15 @@ return view.extend({
|
||||
},
|
||||
|
||||
render: function(data) {
|
||||
// Load wizard CSS
|
||||
var head = document.head || document.getElementsByTagName('head')[0];
|
||||
var cssLink = E('link', {
|
||||
'rel': 'stylesheet',
|
||||
'type': 'text/css',
|
||||
'href': L.resource('crowdsec-dashboard/wizard.css')
|
||||
});
|
||||
head.appendChild(cssLink);
|
||||
|
||||
var container = E('div', { 'class': 'wizard-container' });
|
||||
|
||||
// Create stepper
|
||||
|
||||
Loading…
Reference in New Issue
Block a user