diff --git a/assets/components/FuzzySearchModal.spec.ts b/assets/components/FuzzySearchModal.spec.ts
index 5f48eca3..388a123c 100644
--- a/assets/components/FuzzySearchModal.spec.ts
+++ b/assets/components/FuzzySearchModal.spec.ts
@@ -33,7 +33,7 @@ function createFuzzySearchModal() {
containers: [
new Container("123", new Date(), "image", "test", "command", "host", {}, "status", "running", []),
new Container("345", new Date(), "image", "foo bar", "command", "host", {}, "status", "running", []),
- new Container("567", new Date(), "image", "baz", "command", "host", {}, "status", "exited", []),
+ new Container("567", new Date(), "image", "baz", "command", "host", {}, "status", "running", []),
],
},
},
@@ -56,7 +56,8 @@ describe("", () => {
beforeEach(() => {
vi.mocked(useRouter().push).mockReset();
});
- test("shows all", async () => {
+
+ test("shows running all", async () => {
const wrapper = createFuzzySearchModal();
expect(wrapper.findAll("li").length).toBe(3);
});
diff --git a/assets/components/FuzzySearchModal.vue b/assets/components/FuzzySearchModal.vue
index a271c1a9..d6ac8c2a 100644
--- a/assets/components/FuzzySearchModal.vue
+++ b/assets/components/FuzzySearchModal.vue
@@ -24,14 +24,23 @@
:class="index === selectedIndex ? 'focus' : ''"
>
-
+
{{ result.item.host }} /
+
diff --git a/assets/models/Stack.ts b/assets/models/Stack.ts
index 8facc0fc..7bb774bb 100644
--- a/assets/models/Stack.ts
+++ b/assets/models/Stack.ts
@@ -10,6 +10,10 @@ export class Stack {
service.stack = this;
}
}
+
+ get updatedAt() {
+ return this.containers.map((c) => c.created).reduce((acc, date) => (date > acc ? date : acc), new Date(0));
+ }
}
export class Service {
@@ -19,4 +23,8 @@ export class Service {
) {}
stack?: Stack;
+
+ get updatedAt() {
+ return this.containers.map((c) => c.created).reduce((acc, date) => (date > acc ? date : acc), new Date(0));
+ }
}
diff --git a/assets/pages/group/[name].vue b/assets/pages/group/[name].vue
index 499597a2..ec17cdf7 100644
--- a/assets/pages/group/[name].vue
+++ b/assets/pages/group/[name].vue
@@ -20,3 +20,7 @@ watchEffect(() => {
}
});
+
+meta:
+ swarmMode: true
+
diff --git a/assets/pages/service/[name].vue b/assets/pages/service/[name].vue
index 2619e07e..d59816e1 100644
--- a/assets/pages/service/[name].vue
+++ b/assets/pages/service/[name].vue
@@ -26,3 +26,7 @@ watchEffect(() => {
}
});
+
+meta:
+ swarmMode: true
+
diff --git a/assets/pages/stack/[name].vue b/assets/pages/stack/[name].vue
index b566f1ed..1e11c72e 100644
--- a/assets/pages/stack/[name].vue
+++ b/assets/pages/stack/[name].vue
@@ -26,3 +26,7 @@ watchEffect(() => {
}
});
+
+meta:
+ swarmMode: true
+