mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-22 14:33:33 -07:00
remove old snackbar
This commit is contained in:
parent
4377dceabc
commit
a4405f72ea
3 changed files with 0 additions and 61 deletions
|
@ -32,7 +32,6 @@
|
||||||
<v-main>
|
<v-main>
|
||||||
<v-container>
|
<v-container>
|
||||||
<AddRecipeFab />
|
<AddRecipeFab />
|
||||||
<SnackBar />
|
|
||||||
<router-view></router-view>
|
<router-view></router-view>
|
||||||
</v-container>
|
</v-container>
|
||||||
<FlashMessage :position="'right bottom'"></FlashMessage>
|
<FlashMessage :position="'right bottom'"></FlashMessage>
|
||||||
|
@ -44,7 +43,6 @@
|
||||||
import Menu from "./components/UI/Menu";
|
import Menu from "./components/UI/Menu";
|
||||||
import SearchBar from "./components/UI/SearchBar";
|
import SearchBar from "./components/UI/SearchBar";
|
||||||
import AddRecipeFab from "./components/UI/AddRecipeFab";
|
import AddRecipeFab from "./components/UI/AddRecipeFab";
|
||||||
import SnackBar from "./components/UI/SnackBar";
|
|
||||||
import Vuetify from "./plugins/vuetify";
|
import Vuetify from "./plugins/vuetify";
|
||||||
export default {
|
export default {
|
||||||
name: "App",
|
name: "App",
|
||||||
|
@ -52,7 +50,6 @@ export default {
|
||||||
components: {
|
components: {
|
||||||
Menu,
|
Menu,
|
||||||
AddRecipeFab,
|
AddRecipeFab,
|
||||||
SnackBar,
|
|
||||||
SearchBar,
|
SearchBar,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -1,41 +0,0 @@
|
||||||
<template>
|
|
||||||
<div class="text-center">
|
|
||||||
<v-snackbar :value="active" :timeout="timeout" :color="type">
|
|
||||||
{{ text }}
|
|
||||||
|
|
||||||
<template v-slot:action="{ attrs }">
|
|
||||||
<v-btn color="white" text v-bind="attrs" @click="close(false)">
|
|
||||||
{{$t('general.close')}}
|
|
||||||
</v-btn>
|
|
||||||
</template>
|
|
||||||
</v-snackbar>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
export default {
|
|
||||||
data: () => ({
|
|
||||||
snackbar: false,
|
|
||||||
timeout: -1,
|
|
||||||
}),
|
|
||||||
computed: {
|
|
||||||
text() {
|
|
||||||
return this.$store.getters.getSnackText;
|
|
||||||
},
|
|
||||||
active() {
|
|
||||||
return this.$store.getters.getSnackActive;
|
|
||||||
},
|
|
||||||
type() {
|
|
||||||
return this.$store.getters.getSnackType;
|
|
||||||
},
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
close(value) {
|
|
||||||
this.$store.commit("setSnackActive", value);
|
|
||||||
},
|
|
||||||
},
|
|
||||||
};
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style>
|
|
||||||
</style>
|
|
|
@ -22,10 +22,6 @@ const store = new Vuex.Store({
|
||||||
state: {
|
state: {
|
||||||
// Auth
|
// Auth
|
||||||
isLoggedIn: true,
|
isLoggedIn: true,
|
||||||
// Snackbar
|
|
||||||
snackActive: false,
|
|
||||||
snackText: "",
|
|
||||||
snackType: "warning",
|
|
||||||
|
|
||||||
// All Recipe Data Store
|
// All Recipe Data Store
|
||||||
recentRecipes: [],
|
recentRecipes: [],
|
||||||
|
@ -37,14 +33,6 @@ const store = new Vuex.Store({
|
||||||
setIsLoggedIn(state, payload) {
|
setIsLoggedIn(state, payload) {
|
||||||
state.isLoggedIn = payload;
|
state.isLoggedIn = payload;
|
||||||
},
|
},
|
||||||
setSnackBar(state, payload) {
|
|
||||||
state.snackText = payload.text;
|
|
||||||
state.snackType = payload.type;
|
|
||||||
state.snackActive = true;
|
|
||||||
},
|
|
||||||
setSnackActive(state, payload) {
|
|
||||||
state.snackActive = payload;
|
|
||||||
},
|
|
||||||
|
|
||||||
setRecentRecipes(state, payload) {
|
setRecentRecipes(state, payload) {
|
||||||
state.recentRecipes = payload;
|
state.recentRecipes = payload;
|
||||||
|
@ -72,11 +60,6 @@ const store = new Vuex.Store({
|
||||||
},
|
},
|
||||||
|
|
||||||
getters: {
|
getters: {
|
||||||
//
|
|
||||||
getSnackText: state => state.snackText,
|
|
||||||
getSnackActive: state => state.snackActive,
|
|
||||||
getSnackType: state => state.snackType,
|
|
||||||
|
|
||||||
getRecentRecipes: state => state.recentRecipes,
|
getRecentRecipes: state => state.recentRecipes,
|
||||||
getMealPlanCategories: state => state.mealPlanCategories,
|
getMealPlanCategories: state => state.mealPlanCategories,
|
||||||
getIsLoggedIn: state => state.isLoggedIn,
|
getIsLoggedIn: state => state.isLoggedIn,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue