Add disabled state for button

This commit is contained in:
kolaente 2021-01-17 15:19:01 +01:00
parent 64c20836ae
commit 72596e9f51
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 5 additions and 0 deletions

View File

@ -8,6 +8,7 @@
'is-outlined': type === 'secondary',
'is-text is-inverted has-no-shadow underline-none': type === 'tertary',
}"
:disabled="disabled"
@click="e => $emit('click', e)"
>
<icon :icon="icon" v-if="icon !== ''"/>
@ -35,6 +36,10 @@ export default {
type: Boolean,
default: true,
},
disabled: {
type: Boolean,
default: false,
},
},
}
</script>