diff --git a/ui/app/components/Connection.vue b/ui/app/components/Connection.vue
new file mode 100644
index 00000000..0e5ac902
--- /dev/null
+++ b/ui/app/components/Connection.vue
@@ -0,0 +1,16 @@
+
+
+
+
+ Connection lost, $emit('reconnect')">Click here
+ to reconnect.
+
+
+
+
+
diff --git a/ui/app/components/Simple.vue b/ui/app/components/Simple.vue
index b90805cc..a24e7dc9 100644
--- a/ui/app/components/Simple.vue
+++ b/ui/app/components/Simple.vue
@@ -6,8 +6,9 @@
@@ -542,6 +543,18 @@ const showMessage = (item: StoreItem) => {
}
return (item.msg?.length || 0) > 0
}
+
+const connectionStatusColor = computed(() => {
+ switch (socketStore.connectionStatus) {
+ case 'connected':
+ return 'has-text-success'
+ case 'connecting':
+ return 'has-text-warning fa-spin'
+ case 'disconnected':
+ default:
+ return 'has-text-danger'
+ }
+})