From 2372edcf25fca684933d0f9b92a52cbe5f0af03c Mon Sep 17 00:00:00 2001 From: wandji20 Date: Wed, 27 Sep 2023 08:55:53 +0100 Subject: [PATCH 1/2] Add export button to item card [SCI-9157] --- .../RepositoryItemSidebar.vue | 6 ++-- .../RepositoryStockValue.vue | 35 ++++++++++++++++--- app/views/repository_rows/show.json.jbuilder | 3 ++ config/locales/en.yml | 5 +-- 4 files changed, 40 insertions(+), 9 deletions(-) diff --git a/app/javascript/vue/repository_item_sidebar/RepositoryItemSidebar.vue b/app/javascript/vue/repository_item_sidebar/RepositoryItemSidebar.vue index c2436b2fc..002faf1b5 100644 --- a/app/javascript/vue/repository_item_sidebar/RepositoryItemSidebar.vue +++ b/app/javascript/vue/repository_item_sidebar/RepositoryItemSidebar.vue @@ -95,7 +95,7 @@
+ :colName="column.name" :colVal="column.value" :repositoryRowId="repositoryRowId" :permissions="permissions" />
@@ -222,7 +222,8 @@ export default { assignedModules: null, isShowing: false, assigned: 'Assigned to 3 private tasks that will not be displayed', - barCodeSrc: null + barCodeSrc: null, + permissions: null } }, created() { @@ -279,6 +280,7 @@ export default { this.customColumns = result.custom_columns; this.dataLoading = false this.assignedModules = result.assigned_modules; + this.permissions = result.permissions } }); }, diff --git a/app/javascript/vue/repository_item_sidebar/repository_values/RepositoryStockValue.vue b/app/javascript/vue/repository_item_sidebar/repository_values/RepositoryStockValue.vue index 1e050b9ec..8b97ac154 100644 --- a/app/javascript/vue/repository_item_sidebar/repository_values/RepositoryStockValue.vue +++ b/app/javascript/vue/repository_item_sidebar/repository_values/RepositoryStockValue.vue @@ -1,10 +1,18 @@