refactor(webui): use color attribute instead of class

This commit is contained in:
Gauthier Roebroeck 2021-02-22 17:00:03 +08:00
parent 7950e29b53
commit cf3300a5ef
3 changed files with 5 additions and 6 deletions

View file

@ -16,7 +16,7 @@
<v-col>
<v-checkbox v-model="confirmDelete" color="red">
<template v-slot:label>
{{ $t('dialog.delete_collection.confirm_delete', { name: collection.name}) }}
{{ $t('dialog.delete_collection.confirm_delete', {name: collection.name}) }}
</template>
</v-checkbox>
</v-col>
@ -27,7 +27,7 @@
<v-card-actions>
<v-spacer/>
<v-btn text @click="dialogCancel">{{ $t('dialog.delete_collection.button_cancel') }}</v-btn>
<v-btn text class="red--text"
<v-btn text color="error"
@click="dialogConfirm"
:disabled="!confirmDelete"
>{{ $t('dialog.delete_collection.button_confirm') }}
@ -45,8 +45,7 @@
<v-btn
text
@click="snackbar = false"
>
Close
>{{ $t('common.close') }}
</v-btn>
</v-snackbar>
</div>

View file

@ -25,7 +25,7 @@
<v-card-actions>
<v-spacer/>
<v-btn text @click="dialogCancel">{{ $t('dialog.delete_library.button_cancel') }}</v-btn>
<v-btn text class="red--text"
<v-btn text color="error"
@click="dialogConfirm"
:disabled="!confirmDelete"
>{{ $t('dialog.delete_library.button_confirm') }}

View file

@ -27,7 +27,7 @@
<v-card-actions>
<v-spacer/>
<v-btn text @click="dialogCancel">{{ $t('dialog.delete_readlist.button_cancel') }}</v-btn>
<v-btn text class="red--text"
<v-btn text color="error"
@click="dialogConfirm"
:disabled="!confirmDelete"
>{{ $t('dialog.delete_readlist.button_confirm') }}</v-btn>