mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Fix multiple use of 'disabled' property in BaseButton component in code base by implementing it.
This commit is contained in:
parent
83bfbd863c
commit
2e0e485bbd
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<button
|
<button
|
||||||
:class="buttonClass"
|
:class="buttonClass"
|
||||||
:disabled="loading"
|
:disabled="disabled || loading"
|
||||||
:type="type"
|
:type="type"
|
||||||
@click.capture="(event) => $emit('click', event)"
|
@click.capture="(event) => $emit('click', event)"
|
||||||
>
|
>
|
||||||
@ -56,6 +56,10 @@ export default {
|
|||||||
return value.match(/(button|submit)/)
|
return value.match(/(button|submit)/)
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
disabled: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
buttonClass() {
|
buttonClass() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user