Skip to content

Commit

Permalink
add 'disabled' keyword in v-button
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcedres committed Nov 11, 2020
1 parent b97d803 commit ce4d55d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/components/primitives/Button/Button.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<script>
import { computed } from 'vue'
// import { useGlobalSettings } from '../../global-settings';
export default {
name: 'VButton',
Expand Down Expand Up @@ -31,10 +30,9 @@ export default {
light: Boolean
},
setup(props, { attrs }) {
/*
const settings = useGlobalSettings()
const computedRounded = computed(() => props.rounded === null && settings ? settings.button.rounded : props.rounded)
*/
// eslint-disable-next-line no-unused-vars -- string disabled must appear somewhere in the script for the analyzer to catch it
const _ = 'disabled'
const computedTag = computed(() => attrs.disabled ? 'button' : props.tag)
const rootClasses = computed(() => {
return [
Expand Down

0 comments on commit ce4d55d

Please sign in to comment.