mirror of
https://github.com/Luzifer/twitch-bot.git
synced 2024-11-08 08:10:08 +00:00
[editor] Add description to "Add Action" form group
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
2df98eca66
commit
8e7ab15a1c
2 changed files with 13 additions and 0 deletions
|
@ -8,6 +8,18 @@ const NANO = 1000000000
|
||||||
Vue.config.devtools = true
|
Vue.config.devtools = true
|
||||||
new Vue({
|
new Vue({
|
||||||
computed: {
|
computed: {
|
||||||
|
addActionDescription() {
|
||||||
|
if (!this.models.addAction) {
|
||||||
|
return ''
|
||||||
|
}
|
||||||
|
|
||||||
|
for (const action of this.actions) {
|
||||||
|
if (action.type === this.models.addAction) {
|
||||||
|
return action.description
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
authURL() {
|
authURL() {
|
||||||
const scopes = []
|
const scopes = []
|
||||||
|
|
||||||
|
|
|
@ -811,6 +811,7 @@
|
||||||
<hr>
|
<hr>
|
||||||
|
|
||||||
<b-form-group
|
<b-form-group
|
||||||
|
:description="addActionDescription"
|
||||||
label="Add Action"
|
label="Add Action"
|
||||||
label-for="ruleAddAction"
|
label-for="ruleAddAction"
|
||||||
>
|
>
|
||||||
|
|
Loading…
Reference in a new issue