diff --git a/frontend/src/components/UIElements/Header.vue b/frontend/src/components/UIElements/Header.vue index bbd00f9..b18754a 100644 --- a/frontend/src/components/UIElements/Header.vue +++ b/frontend/src/components/UIElements/Header.vue @@ -1,7 +1,7 @@ + + diff --git a/frontend/src/views/pages/Assets.vue b/frontend/src/views/pages/Assets.vue index fb6c562..ddcfd4c 100755 --- a/frontend/src/views/pages/Assets.vue +++ b/frontend/src/views/pages/Assets.vue @@ -6,6 +6,8 @@ import type { IColumn } from "@/models/Column" import { useAssetStore } from "@/stores/asset" import Header from "@/components/UIElements/Header.vue" import type { IAsset } from "@/models/Asset" +import { NButton } from "naive-ui" +import router from "@/router" const { t } = useI18n() const store = useAssetStore() @@ -21,7 +23,22 @@ const columns: IColumn[] = reactive([ tooltip: true, }, render: (row: IAsset) => { - return [h("i", { class: "fab fa-windows mr-2" }), row.hostname] + return [ + h("i", { class: "fab fa-windows mr-2" }), + row.hostname, + h( + NButton, + { + text: true, + size: "small", + type: "primary", + class: "ml-2", + onClick: () => + router.push({ name: "asset", params: { id: row.id } }), + }, + { default: () => h("i", { class: "fas fa-link" }) }, + ), + ] }, }, {