-
-
- {{ container.name }}
+
+ {{ container.name }}
@@ -48,5 +52,21 @@ export default {
this.loading = false
}
},
+ methods: {
+ status_icon(container: Container): { name: string; type: string } {
+ switch (container.status) {
+ case 'running':
+ return { name: 'play', type: 'success' }
+ case 'restarting':
+ return { name: 'refresh', type: 'danger' }
+ case 'paused':
+ return { name: 'pause', type: 'warning' }
+ case 'exited':
+ return { name: 'stop', type: 'danger' }
+ default:
+ return { name: 'question-circle', type: 'warning' }
+ }
+ },
+ },
}
diff --git a/frontend/views/New.vue b/frontend/views/New.vue
deleted file mode 100644
index ac3edb6..0000000
--- a/frontend/views/New.vue
+++ /dev/null
@@ -1,7 +0,0 @@
-
oui
-
-
diff --git a/frontend/views/Update.vue b/frontend/views/Update.vue
new file mode 100644
index 0000000..b232bcc
--- /dev/null
+++ b/frontend/views/Update.vue
@@ -0,0 +1,45 @@
+
+
+
+
+
+
+