9f8c61a75a
* fix(backend): 🐛 Fix favorite assignment on backend * fix(frontend): 🐛 fix printer button on recipe page * style(frontend): 🚸 add user feadback on copy of recipe link * fix(frontend): 🐛 Fix enableLandscape incorrect bindings to remove duplicate values * feat(frontend): ✨ add ingredient copy button for markdown list -[ ] format * feat(frontend): ✨ add remove prefix button to bulk entry * fix(frontend): 🐛 disable random button when no recipes are present * fix(frontend): ✨ fix .zip download error * fix(frontend): 🚸 close image dialog on upload/get * fix(frontend): 🐛 fix assignment on creation for categories and tags * feat(frontend): ✨ Open editor on creation / fix edit button on main screen * fix(frontend): 🐛 fix false negative regex match for urls on creationg page * feat(frontend): 🚸 provide better user feadback when recipe exists * feat(frontend): ✨ lock bulk importer on submit * remove zip from navigation * fix(frontend): ✨ rerender recipes on delete Co-authored-by: Hayden K <hay-kot@pm.me>
57 lines
1.4 KiB
Vue
57 lines
1.4 KiB
Vue
<template>
|
|
<div class="text-center">
|
|
<v-snackbar v-model="toastAlert.open" top :color="toastAlert.color" timeout="2000" @input="toastAlert.open = false">
|
|
<v-icon dark left>
|
|
{{ icon }}
|
|
</v-icon>
|
|
|
|
{{ toastAlert.title }}
|
|
{{ toastAlert.text }}
|
|
|
|
<template #action="{ attrs }">
|
|
<v-btn text v-bind="attrs" @click="toastAlert.open = false"> Close </v-btn>
|
|
</template>
|
|
</v-snackbar>
|
|
<v-snackbar
|
|
content-class="py-2"
|
|
dense
|
|
bottom
|
|
right
|
|
:value="toastLoading.open"
|
|
:timeout="-1"
|
|
:color="toastLoading.color"
|
|
@input="toastLoading.open = false"
|
|
>
|
|
<div class="d-flex flex-column align-center justify-start" @click="toastLoading.open = false">
|
|
<div class="mb-2 mt-0 text-subtitle-1 text-center">
|
|
{{ toastLoading.text }}
|
|
</div>
|
|
<v-progress-linear indeterminate color="white darken-2"></v-progress-linear>
|
|
</div>
|
|
</v-snackbar>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import { toastAlert, toastLoading } from "~/composables/use-toast";
|
|
|
|
export default {
|
|
setup() {
|
|
return { toastAlert, toastLoading };
|
|
},
|
|
computed: {
|
|
icon() {
|
|
switch (this.toastAlert.color) {
|
|
case "error":
|
|
return "mdi-alert";
|
|
case "success":
|
|
return "mdi-check-bold";
|
|
case "info":
|
|
return "mdi-information-outline";
|
|
default:
|
|
return "mdi-alert";
|
|
}
|
|
},
|
|
},
|
|
};
|
|
</script>
|