mirror of
https://github.com/OliveTin/OliveTin
synced 2025-12-16 02:55:39 +00:00
bugfix: If a button is disabled in the API, render it disabled [skip ci]
This commit is contained in:
@@ -33,6 +33,10 @@ class ActionButton extends ExecutionFeedbackButton {
|
||||
this.setAttribute('role', 'none')
|
||||
this.setAttribute('id', 'actionButton-' + this.actionId)
|
||||
|
||||
if (!json.canExec) {
|
||||
this.btn.disabled = true
|
||||
}
|
||||
|
||||
this.btn.setAttribute('id', 'actionButtonInner-' + this.actionId)
|
||||
this.btn.title = json.title
|
||||
this.btn.onclick = () => {
|
||||
|
||||
Reference in New Issue
Block a user