Show invoice buttons depending of payment status. Fixes #54
This commit is contained in:
@@ -12,7 +12,9 @@ export const buttonVariants = cva(
|
||||
action:
|
||||
'bg-blue-600 border-b-1 border-t-1 border-t-blue-400 border-b-blue-800 active:bg-blue-700 hover:bg-blue-500 text-white',
|
||||
destructive:
|
||||
'bg-destructive dark:bg-red-700 text-white border-b-1 border-t-1 border-t-red-200 border-b-red-700 dark:border-t-red-400 dark:border-b-red-800 hover:bg-red-600 hover:bg-red-600 active:bg-red-500 active:inset-shadow-red-950 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40',
|
||||
'bg-destructive dark:bg-red-700 text-white border-b-1 border-t-1 border-t-red-200 border-b-red-700 dark:border-t-red-400 dark:border-b-red-800 hover:bg-red-600 active:bg-red-500 active:inset-shadow-red-950 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40',
|
||||
success:
|
||||
'bg-success text-success-foreground border-b-1 border-t-1 border-t-lime-200 border-b-lime-500 dark:border-t-lime-400 dark:border-b-lime-800 hover:bg-lime-500 active:bg-lime-500 active:inset-shadow-lime-600 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40',
|
||||
outline:
|
||||
'border bg-background hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50',
|
||||
secondary:
|
||||
|
||||
@@ -26,7 +26,7 @@ watch(() => props.open,
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<Dialog v-bind="forwarded" :open="open">
|
||||
<Dialog v-bind="forwarded" :open="open" data-slot="send-mail-dialog">
|
||||
<DialogContent class="sm:max-w-[425px]">
|
||||
<DialogHeader>
|
||||
<DialogTitle>{{ props.title }}</DialogTitle>
|
||||
@@ -57,9 +57,9 @@ watch(() => props.open,
|
||||
</Dialog>
|
||||
</template>
|
||||
|
||||
<style>
|
||||
<style scoped>
|
||||
/* Remove close X */
|
||||
[data-slot=dialog-content] button.ring-offset-background {
|
||||
[data-slot=send-mail-dialog] [data-slot=dialog-content] button.ring-offset-background {
|
||||
display: none;
|
||||
}
|
||||
</style>
|
||||
@@ -13,7 +13,7 @@ export const statusBadgeVariants = cva(
|
||||
issued:
|
||||
"bg-transparent border-sky-200 text-sky-600 dark:bg-sky-800 dark:text-sky-300 dark:border-0",
|
||||
paid:
|
||||
"border-none bg-lime-400 dark:bg-lime-900 dark:text-lime-400",
|
||||
"border-none bg-success text-success-foreground",
|
||||
due:
|
||||
"font-bold border-none bg-amber-300 text-amber-800 dark:bg-amber-900 dark:text-amber-500",
|
||||
reminded:
|
||||
@@ -25,7 +25,7 @@ export const statusBadgeVariants = cva(
|
||||
size: {
|
||||
default: '',
|
||||
sm: 'lg:aspect-1/1 lg:p-1, lg:rounded-full lg:w-auto lg:w-1 text-transparent dark:text-transparent',
|
||||
lg: '',
|
||||
lg: 'text-sm px-6!',
|
||||
icon: '',
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user