diff --git a/internal/config/config.go b/internal/config/config.go index 6ecf7e0..e8fe85a 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -8,7 +8,6 @@ type Action struct { Icon string Shell string ShellAfterCompleted string - CSS map[string]string `mapstructure:"omitempty"` Timeout int Acls []string Entity string @@ -48,7 +47,6 @@ type EntityFile struct { File string Name string Icon string - CSS map[string]string } // PermissionsList defines what users can do with an action. diff --git a/webui.dev/js/ActionButton.js b/webui.dev/js/ActionButton.js index fad6ca9..0a6e8ae 100644 --- a/webui.dev/js/ActionButton.js +++ b/webui.dev/js/ActionButton.js @@ -31,6 +31,9 @@ class ActionButton extends ExecutionFeedbackButton { // DOM Attributes this.setAttribute('role', 'none') + this.setAttribute('id', 'actionButton-' + this.actionId) + + this.btn.setAttribute('id', 'actionButtonInner-' + this.actionId) this.btn.title = json.title this.btn.onclick = () => { if (json.arguments.length > 0) { @@ -56,8 +59,6 @@ class ActionButton extends ExecutionFeedbackButton { this.domTitle.innerText = this.btn.title this.domIcon.innerHTML = this.unicodeIcon - - this.setAttribute('id', 'actionButton-' + this.actionId) } updateFromJson (json) {