Fix restore icon on record list inline actions
This commit is contained in:
parent
cc920a8fc3
commit
8142aa91ac
@ -239,7 +239,7 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
getActionIcon (r) {
|
getActionIcon (r) {
|
||||||
return r.deletedAt ? ['fa', 'trash-restore'] : ['far', 'trash-alt']
|
return r.deletedAt ? ['fas', 'trash-restore'] : ['far', 'trash-alt']
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@ -208,7 +208,7 @@
|
|||||||
<template v-if="canRestoreSelectedRecords && areAllRowsDeleted">
|
<template v-if="canRestoreSelectedRecords && areAllRowsDeleted">
|
||||||
<c-input-confirm
|
<c-input-confirm
|
||||||
show-icon
|
show-icon
|
||||||
:icon="['fa', 'trash-restore']"
|
:icon="['fas', 'trash-restore']"
|
||||||
:tooltip="$t('recordList.tooltip.restoreSelected')"
|
:tooltip="$t('recordList.tooltip.restoreSelected')"
|
||||||
variant="outline-warning"
|
variant="outline-warning"
|
||||||
@confirmed="handleRestoreSelectedRecords()"
|
@confirmed="handleRestoreSelectedRecords()"
|
||||||
@ -452,7 +452,7 @@
|
|||||||
@click.prevent="handleRestoreInline(item, index)"
|
@click.prevent="handleRestoreInline(item, index)"
|
||||||
>
|
>
|
||||||
<font-awesome-icon
|
<font-awesome-icon
|
||||||
:icon="['fa', 'trash-restore']"
|
:icon="['fas', 'trash-restore']"
|
||||||
class="text-warning"
|
class="text-warning"
|
||||||
/>
|
/>
|
||||||
{{ $t('recordList.record.tooltip.restore') }}
|
{{ $t('recordList.record.tooltip.restore') }}
|
||||||
@ -461,7 +461,6 @@
|
|||||||
<!-- The user should be able to delete the record if it's not yet saved -->
|
<!-- The user should be able to delete the record if it's not yet saved -->
|
||||||
<b-dropdown-item
|
<b-dropdown-item
|
||||||
v-else-if="isInlineDeleteActionVisible(item.r)"
|
v-else-if="isInlineDeleteActionVisible(item.r)"
|
||||||
|
|
||||||
@click.prevent="handleDeleteInline(item, index)"
|
@click.prevent="handleDeleteInline(item, index)"
|
||||||
>
|
>
|
||||||
<font-awesome-icon
|
<font-awesome-icon
|
||||||
@ -550,11 +549,12 @@
|
|||||||
v-else-if="isRestoreActionVisible(item.r)"
|
v-else-if="isRestoreActionVisible(item.r)"
|
||||||
:text="$t('recordList.record.tooltip.restore')"
|
:text="$t('recordList.record.tooltip.restore')"
|
||||||
:icon="['fas', 'trash-restore']"
|
:icon="['fas', 'trash-restore']"
|
||||||
|
show-icon
|
||||||
borderless
|
borderless
|
||||||
variant="link"
|
variant="link"
|
||||||
size="md"
|
size="md"
|
||||||
button-class="dropdown-item text-decoration-none text-dark rounded-0"
|
button-class="dropdown-item text-decoration-none text-dark rounded-0"
|
||||||
icon-class="text-danger"
|
icon-class="text-warning"
|
||||||
class="w-100"
|
class="w-100"
|
||||||
@confirmed="handleRestoreSelectedRecords(item.r.recordID)"
|
@confirmed="handleRestoreSelectedRecords(item.r.recordID)"
|
||||||
/>
|
/>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user