We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e4df1d2 commit bdf568bCopy full SHA for bdf568b
1 file changed
apps/modeling-commons-frontend/app/components/shared/ConnectionBanner.vue
@@ -35,6 +35,7 @@
35
36
<script setup lang="ts">
37
const { isOffline, checkNow } = useConnectionHealth();
38
+const toast = useToast();
39
const checking = ref(false);
40
41
async function retry() {
@@ -45,4 +46,14 @@ async function retry() {
45
46
checking.value = false;
47
}
48
49
+
50
+watch(isOffline, (offline, wasOffline) => {
51
+ if (wasOffline && !offline) {
52
+ refreshNuxtData();
53
+ toast.add({
54
+ title: "Connection restored",
55
+ icon: "i-lucide-wifi",
56
+ });
57
+ }
58
+});
59
</script>
0 commit comments