Fix multiple use of 'disabled' property in BaseButton component in code base by implementing it.

This commit is contained in:
Wolfgang Huß 2022-09-19 06:56:40 +02:00
parent 83bfbd863c
commit 2e0e485bbd

View File

@ -1,7 +1,7 @@
<template>
<button
:class="buttonClass"
:disabled="loading"
:disabled="disabled || loading"
:type="type"
@click.capture="(event) => $emit('click', event)"
>
@ -56,6 +56,10 @@ export default {
return value.match(/(button|submit)/)
},
},
disabled: {
type: Boolean,
default: false,
},
},
computed: {
buttonClass() {