diff --git a/src/components/specific/models/project-models-manager/ProjectModelsManager.scss b/src/components/specific/models/project-models-manager/ProjectModelsManager.scss
index 37a30cddd..f9f659ebd 100644
--- a/src/components/specific/models/project-models-manager/ProjectModelsManager.scss
+++ b/src/components/specific/models/project-models-manager/ProjectModelsManager.scss
@@ -4,7 +4,7 @@
padding: $spacing-unit;
}
- &__table-container {
- padding: $spacing-unit 0;
+ &__action-bar {
+ margin: $spacing-unit 0;
}
}
diff --git a/src/components/specific/models/project-models-manager/ProjectModelsManager.vue b/src/components/specific/models/project-models-manager/ProjectModelsManager.vue
index 23be17102..de8d0f275 100644
--- a/src/components/specific/models/project-models-manager/ProjectModelsManager.vue
+++ b/src/components/specific/models/project-models-manager/ProjectModelsManager.vue
@@ -13,39 +13,41 @@
@tab-click="selectTab"
/>
-
- {}"
- :placeholder="
- $t('ProjectBoard.ProjectModelsManager.tablePlaceholder')
- "
- >
- ?
-
- {{ creator ? `${creator.firstname} ${creator.lastname[0]}.` : "?" }}
-
-
- {{
- updatedAt
- .toISOString()
- .slice(0, -5)
- .replace(/-/g, "/")
- .replace("T", ` ${$t("Commons.at")} `)
- }}
-
-
-
-
-
-
-
-
-
+
+
+
+ ?
+
+ {{ creator ? `${creator.firstname} ${creator.lastname[0]}.` : "?" }}
+
+
+ {{
+ updatedAt
+ .toISOString()
+ .slice(0, -5)
+ .replace(/-/g, "/")
+ .replace("T", ` ${$t("Commons.at")} `)
+ }}
+
+
+
+
+
+
+
+
@@ -57,6 +59,7 @@ import { useI18n } from "vue-i18n";
import BIMDataCard from "@bimdata/design-system/dist/js/BIMDataComponents/vue3/BIMDataCard.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";
import ModelActionMenu from "@/components/specific/models/model-action-menu/ModelActionMenu";
import ModelStatusBadge from "@/components/specific/models/model-status-badge/ModelStatusBadge";
@@ -65,6 +68,7 @@ export default {
BIMDataCard,
BIMDataTabs,
GenericTable,
+ ModelActionBar,
ModelActionMenu,
ModelStatusBadge
},
@@ -179,13 +183,20 @@ export default {
rows.value = models[currentTab.value];
});
+ const selection = ref([]);
+ const setSelection = models => {
+ selection.value = models;
+ };
+
return {
// References
columns,
rows,
+ selection,
tabs,
// Methods
- selectTab
+ selectTab,
+ setSelection
};
}
};
diff --git a/src/i18n/lang/en.js b/src/i18n/lang/en.js
index 9d8093bd3..2ad7bc444 100644
--- a/src/i18n/lang/en.js
+++ b/src/i18n/lang/en.js
@@ -189,5 +189,17 @@ export default {
},
GenericTable: {
pagination: "{start} - {end} of {total}"
+ },
+ ModelActionBar: {
+ delete: "Delete",
+ archive: "Archive",
+ download: "Download",
+ merge: "Merge"
+ },
+ ModelActionMenu: {
+ buttonAddTags: "Add tags",
+ buttonRename: "Rename",
+ buttonArchive: "Archive",
+ buttonDelete: "Delete"
}
};
diff --git a/src/i18n/lang/fr.js b/src/i18n/lang/fr.js
index e28169e92..3acff430d 100644
--- a/src/i18n/lang/fr.js
+++ b/src/i18n/lang/fr.js
@@ -192,5 +192,17 @@ export default {
},
GenericTable: {
pagination: "{start} - {end} sur {total}"
+ },
+ ModelActionBar: {
+ delete: "Supprimer",
+ archive: "Archiver",
+ download: "Télécharger",
+ merge: "Fusionner"
+ },
+ ModelActionMenu: {
+ buttonAddTags: "Ajouter des tags",
+ buttonRename: "Renommer",
+ buttonArchive: "Archiver",
+ buttonDelete: "Supprimer"
}
};