mirror of
				https://github.com/crater-invoice/crater.git
				synced 2025-10-31 05:31:10 -04:00 
			
		
		
		
	add dark mode in basedropdown
This commit is contained in:
		| @ -7,11 +7,12 @@ | ||||
|     <!-- edit customField  --> | ||||
|     <BaseDropdownItem | ||||
|       v-if="userStore.hasAbilities(abilities.EDIT_CUSTOM_FIELDS)" | ||||
|       v-slot="slotProps" | ||||
|       @click="editCustomField(row.id)" | ||||
|     > | ||||
|       <BaseIcon | ||||
|         name="PencilIcon" | ||||
|         class="w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500" | ||||
|         :class="slotProps.class" | ||||
|       /> | ||||
|       {{ $t('general.edit') }} | ||||
|     </BaseDropdownItem> | ||||
| @ -19,11 +20,12 @@ | ||||
|     <!-- delete customField  --> | ||||
|     <BaseDropdownItem | ||||
|       v-if="userStore.hasAbilities(abilities.DELETE_CUSTOM_FIELDS)" | ||||
|       v-slot="slotProps" | ||||
|       @click="removeCustomField(row.id)" | ||||
|     > | ||||
|       <BaseIcon | ||||
|         name="TrashIcon" | ||||
|         class="w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500" | ||||
|         :class="slotProps.class" | ||||
|       /> | ||||
|       {{ $t('general.delete') }} | ||||
|     </BaseDropdownItem> | ||||
|  | ||||
| @ -12,10 +12,10 @@ | ||||
|       v-if="userStore.hasAbilities(abilities.EDIT_CUSTOMER)" | ||||
|       :to="`/admin/customers/${row.id}/edit`" | ||||
|     > | ||||
|       <BaseDropdownItem> | ||||
|       <BaseDropdownItem v-slot="slotProps"> | ||||
|         <BaseIcon | ||||
|           name="PencilIcon" | ||||
|           class="w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500" | ||||
|           :class="slotProps.class" | ||||
|         /> | ||||
|         {{ $t('general.edit') }} | ||||
|       </BaseDropdownItem> | ||||
| @ -29,10 +29,10 @@ | ||||
|       " | ||||
|       :to="`customers/${row.id}/view`" | ||||
|     > | ||||
|       <BaseDropdownItem> | ||||
|       <BaseDropdownItem v-slot="slotProps"> | ||||
|         <BaseIcon | ||||
|           name="EyeIcon" | ||||
|           class="w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500" | ||||
|           :class="slotProps.class" | ||||
|         /> | ||||
|         {{ $t('general.view') }} | ||||
|       </BaseDropdownItem> | ||||
| @ -41,11 +41,12 @@ | ||||
|     <!-- Delete Customer  --> | ||||
|     <BaseDropdownItem | ||||
|       v-if="userStore.hasAbilities(abilities.DELETE_CUSTOMER)" | ||||
|       v-slot="slotProps" | ||||
|       @click="removeCustomer(row.id)" | ||||
|     > | ||||
|       <BaseIcon | ||||
|         name="TrashIcon" | ||||
|         class="w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500" | ||||
|         :class="slotProps.class" | ||||
|       /> | ||||
|       {{ $t('general.delete') }} | ||||
|     </BaseDropdownItem> | ||||
|  | ||||
| @ -10,11 +10,12 @@ | ||||
|     <!-- Copy PDF url  --> | ||||
|     <BaseDropdownItem | ||||
|       v-if="route.name === 'estimates.view'" | ||||
|       v-slot="slotProps" | ||||
|       @click="copyPdfUrl" | ||||
|     > | ||||
|       <BaseIcon | ||||
|         name="LinkIcon" | ||||
|         class="w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500" | ||||
|         :class="slotProps.class" | ||||
|       /> | ||||
|       {{ $t('general.copy_pdf_url') }} | ||||
|     </BaseDropdownItem> | ||||
| @ -24,10 +25,10 @@ | ||||
|       v-if="userStore.hasAbilities(abilities.EDIT_ESTIMATE)" | ||||
|       :to="`/admin/estimates/${row.id}/edit`" | ||||
|     > | ||||
|       <BaseDropdownItem> | ||||
|       <BaseDropdownItem v-slot="slotProps"> | ||||
|         <BaseIcon | ||||
|           name="PencilIcon" | ||||
|           class="w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500" | ||||
|           :class="slotProps.class" | ||||
|         /> | ||||
|         {{ $t('general.edit') }} | ||||
|       </BaseDropdownItem> | ||||
| @ -36,11 +37,12 @@ | ||||
|     <!-- Delete Estimate  --> | ||||
|     <BaseDropdownItem | ||||
|       v-if="userStore.hasAbilities(abilities.DELETE_ESTIMATE)" | ||||
|       v-slot="slotProps" | ||||
|       @click="removeEstimate(row.id)" | ||||
|     > | ||||
|       <BaseIcon | ||||
|         name="TrashIcon" | ||||
|         class="w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500" | ||||
|         :class="slotProps.class" | ||||
|       /> | ||||
|       {{ $t('general.delete') }} | ||||
|     </BaseDropdownItem> | ||||
| @ -53,10 +55,10 @@ | ||||
|       " | ||||
|       :to="`estimates/${row.id}/view`" | ||||
|     > | ||||
|       <BaseDropdownItem> | ||||
|       <BaseDropdownItem v-slot="slotProps"> | ||||
|         <BaseIcon | ||||
|           name="EyeIcon" | ||||
|           class="w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500" | ||||
|           :class="slotProps.class" | ||||
|         /> | ||||
|         {{ $t('general.view') }} | ||||
|       </BaseDropdownItem> | ||||
| @ -65,11 +67,12 @@ | ||||
|     <!-- Convert into Invoice  --> | ||||
|     <BaseDropdownItem | ||||
|       v-if="userStore.hasAbilities(abilities.CREATE_INVOICE)" | ||||
|       v-slot="slotProps" | ||||
|       @click="convertInToinvoice(row.id)" | ||||
|     > | ||||
|       <BaseIcon | ||||
|         name="DocumentTextIcon" | ||||
|         class="w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500" | ||||
|         :class="slotProps.class" | ||||
|       /> | ||||
|       {{ $t('estimates.convert_to_invoice') }} | ||||
|     </BaseDropdownItem> | ||||
| @ -81,11 +84,12 @@ | ||||
|         route.name !== 'estimates.view' && | ||||
|         userStore.hasAbilities(abilities.SEND_ESTIMATE) | ||||
|       " | ||||
|       v-slot="slotProps" | ||||
|       @click="onMarkAsSent(row.id)" | ||||
|     > | ||||
|       <BaseIcon | ||||
|         name="CheckCircleIcon" | ||||
|         class="w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500" | ||||
|         :class="slotProps.class" | ||||
|       /> | ||||
|       {{ $t('estimates.mark_as_sent') }} | ||||
|     </BaseDropdownItem> | ||||
| @ -97,20 +101,21 @@ | ||||
|         route.name !== 'estimates.view' && | ||||
|         userStore.hasAbilities(abilities.SEND_ESTIMATE) | ||||
|       " | ||||
|       v-slot="slotProps" | ||||
|       @click="sendEstimate(row)" | ||||
|     > | ||||
|       <BaseIcon | ||||
|         name="PaperAirplaneIcon" | ||||
|         class="w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500" | ||||
|         :class="slotProps.class" | ||||
|       /> | ||||
|       {{ $t('estimates.send_estimate') }} | ||||
|     </BaseDropdownItem> | ||||
|  | ||||
|     <!-- Resend Estimate --> | ||||
|     <BaseDropdownItem v-if="canResendEstimate(row)" @click="sendEstimate(row)"> | ||||
|     <BaseDropdownItem v-if="canResendEstimate(row)" v-slot="slotProps"  @click="sendEstimate(row)"> | ||||
|       <BaseIcon | ||||
|         name="PaperAirplaneIcon" | ||||
|         class="w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500" | ||||
|         :class="slotProps.class" | ||||
|       /> | ||||
|       {{ $t('estimates.resend_estimate') }} | ||||
|     </BaseDropdownItem> | ||||
| @ -121,11 +126,12 @@ | ||||
|         row.status !== 'ACCEPTED' && | ||||
|         userStore.hasAbilities(abilities.EDIT_ESTIMATE) | ||||
|       " | ||||
|       v-slot="slotProps" | ||||
|       @click="onMarkAsAccepted(row.id)" | ||||
|     > | ||||
|       <BaseIcon | ||||
|         name="CheckCircleIcon" | ||||
|         class="w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500" | ||||
|         :class="slotProps.class" | ||||
|       /> | ||||
|       {{ $t('estimates.mark_as_accepted') }} | ||||
|     </BaseDropdownItem> | ||||
| @ -136,11 +142,12 @@ | ||||
|         row.status !== 'REJECTED' && | ||||
|         userStore.hasAbilities(abilities.EDIT_ESTIMATE) | ||||
|       " | ||||
|       v-slot="slotProps" | ||||
|       @click="onMarkAsRejected(row.id)" | ||||
|     > | ||||
|       <BaseIcon | ||||
|         name="XCircleIcon" | ||||
|         class="w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500" | ||||
|         :class="slotProps.class" | ||||
|       /> | ||||
|       {{ $t('estimates.mark_as_rejected') }} | ||||
|     </BaseDropdownItem> | ||||
|  | ||||
| @ -13,11 +13,12 @@ | ||||
|     <!-- edit expenseCategory  --> | ||||
|     <BaseDropdownItem | ||||
|       v-if="userStore.hasAbilities(abilities.EDIT_EXPENSE)" | ||||
|       v-slot="slotProps" | ||||
|       @click="editExpenseCategory(row.id)" | ||||
|     > | ||||
|       <BaseIcon | ||||
|         name="PencilIcon" | ||||
|         class="w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500" | ||||
|         :class="slotProps.class" | ||||
|       /> | ||||
|       {{ $t('general.edit') }} | ||||
|     </BaseDropdownItem> | ||||
| @ -25,11 +26,12 @@ | ||||
|     <!-- delete expenseCategory  --> | ||||
|     <BaseDropdownItem | ||||
|       v-if="userStore.hasAbilities(abilities.DELETE_EXPENSE)" | ||||
|       v-slot="slotProps" | ||||
|       @click="removeExpenseCategory(row.id)" | ||||
|     > | ||||
|       <BaseIcon | ||||
|         name="TrashIcon" | ||||
|         class="w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500" | ||||
|         :class="slotProps.class" | ||||
|       /> | ||||
|       {{ $t('general.delete') }} | ||||
|     </BaseDropdownItem> | ||||
|  | ||||
| @ -12,10 +12,10 @@ | ||||
|       v-if="userStore.hasAbilities(abilities.EDIT_EXPENSE)" | ||||
|       :to="`/admin/expenses/${row.id}/edit`" | ||||
|     > | ||||
|       <BaseDropdownItem> | ||||
|       <BaseDropdownItem v-slot="slotProps"> | ||||
|         <BaseIcon | ||||
|           name="PencilIcon" | ||||
|           class="w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500" | ||||
|           :class="slotProps.class" | ||||
|         /> | ||||
|         {{ $t('general.edit') }} | ||||
|       </BaseDropdownItem> | ||||
| @ -24,11 +24,12 @@ | ||||
|     <!-- delete expense  --> | ||||
|     <BaseDropdownItem | ||||
|       v-if="userStore.hasAbilities(abilities.DELETE_EXPENSE)" | ||||
|       v-slot="slotProps" | ||||
|       @click="removeExpense(row.id)" | ||||
|     > | ||||
|       <BaseIcon | ||||
|         name="TrashIcon" | ||||
|         class="w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500" | ||||
|         :class="slotProps.class" | ||||
|       /> | ||||
|       {{ $t('general.delete') }} | ||||
|     </BaseDropdownItem> | ||||
|  | ||||
| @ -12,20 +12,20 @@ | ||||
|       v-if="userStore.hasAbilities(abilities.EDIT_INVOICE)" | ||||
|       :to="`/admin/invoices/${row.id}/edit`" | ||||
|     > | ||||
|       <BaseDropdownItem v-show="row.allow_edit"> | ||||
|       <BaseDropdownItem v-show="row.allow_edit" v-slot="slotProps"> | ||||
|         <BaseIcon | ||||
|           name="PencilIcon" | ||||
|           class="w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500" | ||||
|           :class="slotProps.class" | ||||
|         /> | ||||
|         {{ $t('general.edit') }} | ||||
|       </BaseDropdownItem> | ||||
|     </router-link> | ||||
|  | ||||
|     <!-- Copy PDF url  --> | ||||
|     <BaseDropdownItem v-if="route.name === 'invoices.view'" @click="copyPdfUrl"> | ||||
|     <BaseDropdownItem v-if="route.name === 'invoices.view'" v-slot="slotProps" @click="copyPdfUrl"> | ||||
|       <BaseIcon | ||||
|         name="LinkIcon" | ||||
|         class="w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500" | ||||
|         :class="slotProps.class" | ||||
|       /> | ||||
|       {{ $t('general.copy_pdf_url') }} | ||||
|     </BaseDropdownItem> | ||||
| @ -38,29 +38,29 @@ | ||||
|       " | ||||
|       :to="`/admin/invoices/${row.id}/view`" | ||||
|     > | ||||
|       <BaseDropdownItem> | ||||
|       <BaseDropdownItem v-slot="slotProps"> | ||||
|         <BaseIcon | ||||
|           name="EyeIcon" | ||||
|           class="w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500" | ||||
|           :class="slotProps.class" | ||||
|         /> | ||||
|         {{ $t('general.view') }} | ||||
|       </BaseDropdownItem> | ||||
|     </router-link> | ||||
|  | ||||
|     <!-- Send Invoice Mail  --> | ||||
|     <BaseDropdownItem v-if="canSendInvoice(row)" @click="sendInvoice(row)"> | ||||
|     <BaseDropdownItem v-if="canSendInvoice(row)" v-slot="slotProps" @click="sendInvoice(row)"> | ||||
|       <BaseIcon | ||||
|         name="PaperAirplaneIcon" | ||||
|         class="w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500" | ||||
|         :class="slotProps.class" | ||||
|       /> | ||||
|       {{ $t('invoices.send_invoice') }} | ||||
|     </BaseDropdownItem> | ||||
|  | ||||
|     <!-- Resend Invoice --> | ||||
|     <BaseDropdownItem v-if="canReSendInvoice(row)" @click="sendInvoice(row)"> | ||||
|     <BaseDropdownItem v-if="canReSendInvoice(row)" v-slot="slotProps" @click="sendInvoice(row)"> | ||||
|       <BaseIcon | ||||
|         name="PaperAirplaneIcon" | ||||
|         class="w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500" | ||||
|         :class="slotProps.class" | ||||
|       /> | ||||
|       {{ $t('invoices.resend_invoice') }} | ||||
|     </BaseDropdownItem> | ||||
| @ -72,17 +72,17 @@ | ||||
|       > | ||||
|         <BaseIcon | ||||
|           name="CreditCardIcon" | ||||
|           class="w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500" | ||||
|           :class="slotProps.class" | ||||
|         /> | ||||
|         {{ $t('invoices.record_payment') }} | ||||
|       </BaseDropdownItem> | ||||
|     </router-link> | ||||
|  | ||||
|     <!-- Mark as sent Invoice --> | ||||
|     <BaseDropdownItem v-if="canSendInvoice(row)" @click="onMarkAsSent(row.id)"> | ||||
|     <BaseDropdownItem v-if="canSendInvoice(row)" v-slot="slotProps" @click="onMarkAsSent(row.id)"> | ||||
|       <BaseIcon | ||||
|         name="CheckCircleIcon" | ||||
|         class="w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500" | ||||
|         :class="slotProps.class" | ||||
|       /> | ||||
|       {{ $t('invoices.mark_as_sent') }} | ||||
|     </BaseDropdownItem> | ||||
| @ -90,11 +90,12 @@ | ||||
|     <!-- Clone Invoice into new invoice  --> | ||||
|     <BaseDropdownItem | ||||
|       v-if="userStore.hasAbilities(abilities.CREATE_INVOICE)" | ||||
|       v-slot="slotProps" | ||||
|       @click="cloneInvoiceData(row)" | ||||
|     > | ||||
|       <BaseIcon | ||||
|         name="DocumentTextIcon" | ||||
|         class="w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500" | ||||
|         :class="slotProps.class" | ||||
|       /> | ||||
|       {{ $t('invoices.clone_invoice') }} | ||||
|     </BaseDropdownItem> | ||||
| @ -102,11 +103,12 @@ | ||||
|     <!--  Delete Invoice  --> | ||||
|     <BaseDropdownItem | ||||
|       v-if="userStore.hasAbilities(abilities.DELETE_INVOICE)" | ||||
|       v-slot="slotProps" | ||||
|       @click="removeInvoice(row.id)" | ||||
|     > | ||||
|       <BaseIcon | ||||
|         name="TrashIcon" | ||||
|         class="w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500" | ||||
|         :class="slotProps.class" | ||||
|       /> | ||||
|       {{ $t('general.delete') }} | ||||
|     </BaseDropdownItem> | ||||
|  | ||||
| @ -12,11 +12,8 @@ | ||||
|       v-if="userStore.hasAbilities(abilities.EDIT_ITEM)" | ||||
|       :to="`/admin/items/${row.id}/edit`" | ||||
|     > | ||||
|       <BaseDropdownItem> | ||||
|         <BaseIcon | ||||
|           name="PencilIcon" | ||||
|           class="w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500" | ||||
|         /> | ||||
|       <BaseDropdownItem v-slot="slotProps"> | ||||
|         <BaseIcon name="PencilIcon" :class="slotProps.class" /> | ||||
|         {{ $t('general.edit') }} | ||||
|       </BaseDropdownItem> | ||||
|     </router-link> | ||||
| @ -24,12 +21,10 @@ | ||||
|     <!-- delete item  --> | ||||
|     <BaseDropdownItem | ||||
|       v-if="userStore.hasAbilities(abilities.DELETE_ITEM)" | ||||
|       v-slot="slotProps" | ||||
|       @click="removeItem(row.id)" | ||||
|     > | ||||
|       <BaseIcon | ||||
|         name="TrashIcon" | ||||
|         class="w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500" | ||||
|       /> | ||||
|       <BaseIcon name="TrashIcon" :class="slotProps.class" /> | ||||
|       {{ $t('general.delete') }} | ||||
|     </BaseDropdownItem> | ||||
|   </BaseDropdown> | ||||
|  | ||||
| @ -10,11 +10,12 @@ | ||||
|     <!-- edit note  --> | ||||
|     <BaseDropdownItem | ||||
|       v-if="userStore.hasAbilities(abilities.MANAGE_NOTE)" | ||||
|       v-slot="slotProps" | ||||
|       @click="editNote(row.id)" | ||||
|     > | ||||
|       <BaseIcon | ||||
|         name="PencilIcon" | ||||
|         class="w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500" | ||||
|         :class="slotProps.class" | ||||
|       /> | ||||
|       {{ $t('general.edit') }} | ||||
|     </BaseDropdownItem> | ||||
| @ -22,11 +23,12 @@ | ||||
|     <!-- delete note  --> | ||||
|     <BaseDropdownItem | ||||
|       v-if="userStore.hasAbilities(abilities.MANAGE_NOTE)" | ||||
|       v-slot="slotProps" | ||||
|       @click="removeNote(row.id)" | ||||
|     > | ||||
|       <BaseIcon | ||||
|         name="TrashIcon" | ||||
|         class="w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500" | ||||
|         :class="slotProps.class" | ||||
|       /> | ||||
|       {{ $t('general.delete') }} | ||||
|     </BaseDropdownItem> | ||||
|  | ||||
| @ -8,30 +8,31 @@ | ||||
|     </template> | ||||
|  | ||||
|     <!-- Copy pdf url  --> | ||||
|     <BaseDropdown-item | ||||
|     <BaseDropdownItem | ||||
|       v-if=" | ||||
|         route.name === 'payments.view' && | ||||
|         userStore.hasAbilities(abilities.VIEW_PAYMENT) | ||||
|       " | ||||
|       v-slot="slotProps" | ||||
|       class="rounded-md" | ||||
|       @click="copyPdfUrl" | ||||
|     > | ||||
|       <BaseIcon | ||||
|         name="LinkIcon" | ||||
|         class="w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500" | ||||
|         :class="slotProps.class" | ||||
|       /> | ||||
|       {{ $t('general.copy_pdf_url') }} | ||||
|     </BaseDropdown-item> | ||||
|     </BaseDropdownItem> | ||||
|  | ||||
|     <!-- edit payment  --> | ||||
|     <router-link | ||||
|       v-if="userStore.hasAbilities(abilities.EDIT_PAYMENT)" | ||||
|       :to="`/admin/payments/${row.id}/edit`" | ||||
|     > | ||||
|       <BaseDropdownItem> | ||||
|       <BaseDropdownItem v-slot="slotProps"> | ||||
|         <BaseIcon | ||||
|           name="PencilIcon" | ||||
|           class="w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500" | ||||
|           :class="slotProps.class" | ||||
|         /> | ||||
|         {{ $t('general.edit') }} | ||||
|       </BaseDropdownItem> | ||||
| @ -45,10 +46,10 @@ | ||||
|       " | ||||
|       :to="`/admin/payments/${row.id}/view`" | ||||
|     > | ||||
|       <BaseDropdownItem> | ||||
|       <BaseDropdownItem v-slot="slotProps"> | ||||
|         <BaseIcon | ||||
|           name="EyeIcon" | ||||
|           class="w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500" | ||||
|           :class="slotProps.class" | ||||
|         /> | ||||
|         {{ $t('general.view') }} | ||||
|       </BaseDropdownItem> | ||||
| @ -61,11 +62,12 @@ | ||||
|         route.name !== 'payments.view' && | ||||
|         userStore.hasAbilities(abilities.SEND_PAYMENT) | ||||
|       " | ||||
|       v-slot="slotProps" | ||||
|       @click="sendPayment(row)" | ||||
|     > | ||||
|       <BaseIcon | ||||
|         name="PaperAirplaneIcon" | ||||
|         class="w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500" | ||||
|         :class="slotProps.class" | ||||
|       /> | ||||
|       {{ $t('payments.send_payment') }} | ||||
|     </BaseDropdownItem> | ||||
| @ -73,11 +75,12 @@ | ||||
|     <!-- delete payment  --> | ||||
|     <BaseDropdownItem | ||||
|       v-if="userStore.hasAbilities(abilities.DELETE_PAYMENT)" | ||||
|       v-slot="slotProps" | ||||
|       @click="removePayment(row.id)" | ||||
|     > | ||||
|       <BaseIcon | ||||
|         name="TrashIcon" | ||||
|         class="w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500" | ||||
|         :class="slotProps.class" | ||||
|       /> | ||||
|       {{ $t('general.delete') }} | ||||
|     </BaseDropdownItem> | ||||
|  | ||||
| @ -8,19 +8,19 @@ | ||||
|     </template> | ||||
|  | ||||
|     <!-- edit paymentMode  --> | ||||
|     <BaseDropdownItem @click="editPaymentMode(row.id)"> | ||||
|     <BaseDropdownItem v-slot="slotProps"  @click="editPaymentMode(row.id)"> | ||||
|       <BaseIcon | ||||
|         name="PencilIcon" | ||||
|         class="w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500" | ||||
|         :class="slotProps.class" | ||||
|       /> | ||||
|       {{ $t('general.edit') }} | ||||
|     </BaseDropdownItem> | ||||
|  | ||||
|     <!-- delete paymentMode  --> | ||||
|     <BaseDropdownItem @click="removePaymentMode(row.id)"> | ||||
|     <BaseDropdownItem v-slot="slotProps"  @click="removePaymentMode(row.id)"> | ||||
|       <BaseIcon | ||||
|         name="TrashIcon" | ||||
|         class="w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500" | ||||
|         :class="slotProps.class" | ||||
|       /> | ||||
|       {{ $t('general.delete') }} | ||||
|     </BaseDropdownItem> | ||||
|  | ||||
| @ -15,10 +15,10 @@ | ||||
|       v-if="userStore.hasAbilities(abilities.EDIT_RECURRING_INVOICE)" | ||||
|       :to="`/admin/recurring-invoices/${row.id}/edit`" | ||||
|     > | ||||
|       <BaseDropdownItem> | ||||
|       <BaseDropdownItem v-slot="slotProps"> | ||||
|         <BaseIcon | ||||
|           name="PencilIcon" | ||||
|           class="w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500" | ||||
|           :class="slotProps.class" | ||||
|         /> | ||||
|         {{ $t('general.edit') }} | ||||
|       </BaseDropdownItem> | ||||
| @ -32,10 +32,10 @@ | ||||
|       " | ||||
|       :to="`recurring-invoices/${row.id}/view`" | ||||
|     > | ||||
|       <BaseDropdownItem> | ||||
|       <BaseDropdownItem v-slot="slotProps"> | ||||
|         <BaseIcon | ||||
|           name="EyeIcon" | ||||
|           class="w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500" | ||||
|           :class="slotProps.class" | ||||
|         /> | ||||
|         {{ $t('general.view') }} | ||||
|       </BaseDropdownItem> | ||||
| @ -44,11 +44,12 @@ | ||||
|     <!-- Delete Recurring Invoice  --> | ||||
|     <BaseDropdownItem | ||||
|       v-if="userStore.hasAbilities(abilities.DELETE_RECURRING_INVOICE)" | ||||
|       v-slot="slotProps" | ||||
|       @click="removeMultipleRecurringInvoices(row.id)" | ||||
|     > | ||||
|       <BaseIcon | ||||
|         name="TrashIcon" | ||||
|         class="w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500" | ||||
|         :class="slotProps.class" | ||||
|       /> | ||||
|       {{ $t('general.delete') }} | ||||
|     </BaseDropdownItem> | ||||
|  | ||||
| @ -10,11 +10,12 @@ | ||||
|     <!-- edit role  --> | ||||
|     <BaseDropdownItem | ||||
|       v-if="userStore.currentUser.is_owner" | ||||
|       v-slot="slotProps" | ||||
|       @click="editRole(row.id)" | ||||
|     > | ||||
|       <BaseIcon | ||||
|         name="PencilIcon" | ||||
|         class="w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500" | ||||
|         :class="slotProps.class" | ||||
|       /> | ||||
|       {{ $t('general.edit') }} | ||||
|     </BaseDropdownItem> | ||||
| @ -22,11 +23,12 @@ | ||||
|     <!-- delete role  --> | ||||
|     <BaseDropdownItem | ||||
|       v-if="userStore.currentUser.is_owner" | ||||
|       v-slot="slotProps" | ||||
|       @click="removeRole(row.id)" | ||||
|     > | ||||
|       <BaseIcon | ||||
|         name="TrashIcon" | ||||
|         class="w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500" | ||||
|         :class="slotProps.class" | ||||
|       /> | ||||
|       {{ $t('general.delete') }} | ||||
|     </BaseDropdownItem> | ||||
|  | ||||
| @ -10,11 +10,12 @@ | ||||
|     <!-- edit tax-type  --> | ||||
|     <BaseDropdownItem | ||||
|       v-if="userStore.hasAbilities(abilities.EDIT_TAX_TYPE)" | ||||
|       v-slot="slotProps" | ||||
|       @click="editTaxType(row.id)" | ||||
|     > | ||||
|       <BaseIcon | ||||
|         name="PencilIcon" | ||||
|         class="w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500" | ||||
|         :class="slotProps.class" | ||||
|       /> | ||||
|       {{ $t('general.edit') }} | ||||
|     </BaseDropdownItem> | ||||
| @ -22,11 +23,12 @@ | ||||
|     <!-- delete tax-type  --> | ||||
|     <BaseDropdownItem | ||||
|       v-if="userStore.hasAbilities(abilities.DELETE_TAX_TYPE)" | ||||
|       v-slot="slotProps" | ||||
|       @click="removeTaxType(row.id)" | ||||
|     > | ||||
|       <BaseIcon | ||||
|         name="TrashIcon" | ||||
|         class="w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500" | ||||
|         :class="slotProps.class" | ||||
|       /> | ||||
|       {{ $t('general.delete') }} | ||||
|     </BaseDropdownItem> | ||||
|  | ||||
| @ -9,20 +9,20 @@ | ||||
|  | ||||
|     <!-- edit user  --> | ||||
|     <router-link :to="`/admin/users/${row.id}/edit`"> | ||||
|       <BaseDropdownItem> | ||||
|       <BaseDropdownItem v-slot="slotProps"> | ||||
|         <BaseIcon | ||||
|           name="PencilIcon" | ||||
|           class="w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500" | ||||
|           :class="slotProps.class" | ||||
|         /> | ||||
|         {{ $t('general.edit') }} | ||||
|       </BaseDropdownItem> | ||||
|     </router-link> | ||||
|  | ||||
|     <!-- delete user  --> | ||||
|     <BaseDropdownItem @click="removeUser(row.id)"> | ||||
|     <BaseDropdownItem v-slot="slotProps" @click="removeUser(row.id)"> | ||||
|       <BaseIcon | ||||
|         name="TrashIcon" | ||||
|         class="w-5 h-5 mr-3 text-gray-400 group-hover:text-gray-500" | ||||
|         :class="slotProps.class" | ||||
|       /> | ||||
|       {{ $t('general.delete') }} | ||||
|     </BaseDropdownItem> | ||||
|  | ||||
		Reference in New Issue
	
	Block a user