diff --git a/package/secubox/luci-app-crowdsec-dashboard/Makefile b/package/secubox/luci-app-crowdsec-dashboard/Makefile index 3e2188d0..2775d51f 100644 --- a/package/secubox/luci-app-crowdsec-dashboard/Makefile +++ b/package/secubox/luci-app-crowdsec-dashboard/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=luci-app-crowdsec-dashboard PKG_VERSION:=0.6.0 -PKG_RELEASE:=6 +PKG_RELEASE:=7 PKG_ARCH:=all PKG_LICENSE:=Apache-2.0 diff --git a/package/secubox/luci-app-crowdsec-dashboard/htdocs/luci-static/resources/view/crowdsec-dashboard/wizard.js b/package/secubox/luci-app-crowdsec-dashboard/htdocs/luci-static/resources/view/crowdsec-dashboard/wizard.js index 164fefe8..3d151bf0 100644 --- a/package/secubox/luci-app-crowdsec-dashboard/htdocs/luci-static/resources/view/crowdsec-dashboard/wizard.js +++ b/package/secubox/luci-app-crowdsec-dashboard/htdocs/luci-static/resources/view/crowdsec-dashboard/wizard.js @@ -249,15 +249,17 @@ return view.extend({ E('div', { 'class': 'collections-list' }, recommendedCollections.map(L.bind(function(collection) { + var checkboxId = 'collection-' + collection.name.replace('/', '-'); var checkbox = E('input', { 'type': 'checkbox', - 'id': 'collection-' + collection.name.replace('/', '-'), - 'checked': collection.preselected, - 'data-collection': collection.name + 'id': checkboxId, + 'checked': collection.preselected ? 'checked' : null, + 'data-collection': collection.name, + 'style': 'width: 18px; height: 18px; cursor: pointer; margin: 0;' }); return E('div', { 'class': 'collection-item' }, [ - E('label', {}, [ + E('label', { 'for': checkboxId, 'style': 'display: flex; align-items: center; gap: 12px; cursor: pointer; margin: 0;' }, [ checkbox, E('div', { 'class': 'collection-info' }, [ E('strong', {}, collection.name), @@ -274,7 +276,7 @@ return view.extend({ E('div', { 'class': 'spinning' }), E('p', {}, _('Installing collections...')), E('div', { 'id': 'install-status' }, this.wizardData.installStatus || '') - ]) : null, + ]) : E([]), // Navigation E('div', { 'class': 'wizard-nav' }, [