Skip to content

Commit

Permalink
fix(models-manager): add ifc icon to name column
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasRichel committed Mar 24, 2021
1 parent 5d554b4 commit 3555c52
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@
@selection-changed="setSelection"
:placeholder="$t('ProjectBoard.ProjectModelsManager.tablePlaceholder')"
>
<template #cell-name="{ row: { name } }">
<div style="display: flex; align-items: center; gap: 6px;">
<BIMDataIcon name="ifc" size="xs" />
<span>{{ name }}</span>
</div>
</template>
<template #cell-version>?</template>
<template #cell-creator="{ row: { creator } }">
{{ creator ? `${creator.firstname} ${creator.lastname[0]}.` : "?" }}
Expand Down Expand Up @@ -57,6 +63,7 @@ import { reactive, ref, watch, watchEffect } from "vue";
import { useI18n } from "vue-i18n";
// Components
import BIMDataCard from "@bimdata/design-system/dist/js/BIMDataComponents/vue3/BIMDataCard.js";
import BIMDataIcon from "@bimdata/design-system/dist/js/BIMDataComponents/vue3/BIMDataIcon.js";
import BIMDataTabs from "@bimdata/design-system/dist/js/BIMDataComponents/vue3/BIMDataTabs.js";
import GenericTable from "@/components/generic/generic-table/GenericTable";
import ModelActionBar from "@/components/specific/models/model-action-bar/ModelActionBar";
Expand All @@ -66,6 +73,7 @@ import ModelStatusBadge from "@/components/specific/models/model-status-badge/Mo
export default {
components: {
BIMDataCard,
BIMDataIcon,
BIMDataTabs,
GenericTable,
ModelActionBar,
Expand Down

0 comments on commit 3555c52

Please sign in to comment.