Skip to content

Commit 089aa97

Browse files
committed
Comment out vue-snack stuff
1 parent 230a520 commit 089aa97

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

src/components/settings/CheckUpdatesButton.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ export default defineComponent({
3030
this.spin = false;
3131
if (!(window as any).needsRefresh) {
3232
// @ts-ignore TODO migrate
33-
this.$snack.show({
34-
text: "No updates found",
35-
button: "",
36-
});
33+
// this.$snack.show({
34+
// text: "No updates found",
35+
// button: "",
36+
// });
3737
}
3838
}, 4000);
3939
},

src/main.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import "core-js/features/array/from";
55

66
// @ts-ignore
77
import { createApp, nextTick, configureCompat } from "vue";
8-
import VueSnackbar from "vue-snack";
9-
import "vue-snack/dist/vue-snack.min.css";
8+
// import VueSnackbar from "vue-snack";
9+
// import "vue-snack/dist/vue-snack.min.css";
1010
import Meta from "vue-meta";
1111

1212
import App from "@/App.vue";
@@ -25,7 +25,7 @@ import {
2525
configureCompat({ RENDER_FUNCTION: false, WATCH_ARRAY: false });
2626

2727
const app = createApp(App)
28-
.use(VueSnackbar, { close: true })
28+
// .use(VueSnackbar, { close: true })
2929
// migrate TODO
3030
.use(Meta as any)
3131
.use(router as any)
@@ -37,20 +37,20 @@ document.addEventListener("DOMContentLoaded", () => {
3737
const text = sessionStorage.getItem(messageOnNextPageReloadKey);
3838
if (text != null) {
3939
nextTick(() => {
40-
(vm as any).$snack.show({
41-
text,
42-
button: "",
43-
});
40+
// (vm as any).$snack.show({
41+
// text,
42+
// button: "",
43+
// });
4444
sessionStorage.removeItem(messageOnNextPageReloadKey);
4545
});
4646
}
4747
});
4848

4949
document.addEventListener("needs-refresh", () => {
5050
// @ts-ignore migrate TODo
51-
vm.$snack.show({
52-
text: "New update for site is available",
53-
button: "refresh to update",
54-
action: refreshToUpdate,
55-
});
51+
// vm.$snack.show({
52+
// text: "New update for site is available",
53+
// button: "refresh to update",
54+
// action: refreshToUpdate,
55+
// });
5656
});

0 commit comments

Comments
 (0)