@@ -52,9 +54,8 @@ export default {
colId: Number,
colName: String,
colVal: Array,
- permissions: null,
optionsPath: String,
- inArchivedRepositoryRow: Boolean,
+ canEdit: Boolean
},
data() {
return {
diff --git a/app/javascript/vue/repository_item_sidebar/repository_values/RepositoryListValue.vue b/app/javascript/vue/repository_item_sidebar/repository_values/RepositoryListValue.vue
index f30dfb032..092cb1644 100644
--- a/app/javascript/vue/repository_item_sidebar/repository_values/RepositoryListValue.vue
+++ b/app/javascript/vue/repository_item_sidebar/repository_values/RepositoryListValue.vue
@@ -17,6 +17,8 @@
:placeholder="i18n.t('repositories.item_card.dropdown_placeholder')"
:no-options-placeholder="i18n.t('repositories.item_card.dropdown_placeholder')"
:searchPlaceholder="i18n.t('repositories.item_card.dropdown_placeholder')"
+ className="h-[38px] !pl-3"
+ optionsClassName="max-h-[300px]"
>
-
-
-
-
- {{ colVal }}
-
-
- {{ i18n.t("repositories.item_card.repository_number_value.no_number") }}
-
+
+
+
+
+ {{ colVal }}
+
+
+ {{ i18n.t("repositories.item_card.repository_number_value.no_number") }}
+
@@ -64,18 +65,12 @@ export default {
colName: String,
colVal: Number,
permissions: null,
- inArchivedRepositoryRow: Boolean,
+ canEdit: { type: Boolean, defaul: false}
},
created() {
// constants
- this.noContentPlaceholder = this.i18n.t("repositories.item_card.repository_number_value.no_number");
this.decimals = Number(document.getElementById(`${this.colId}`).dataset['metadataDecimals']) || 0;
},
- computed: {
- canEdit() {
- return this.permissions?.can_manage && !this.inArchivedRepositoryRow;
- }
- },
methods: {
toggleCollapse() {
if (!this.expandable) return;
diff --git a/app/javascript/vue/repository_item_sidebar/repository_values/RepositoryStatusValue.vue b/app/javascript/vue/repository_item_sidebar/repository_values/RepositoryStatusValue.vue
index 289056fdb..7d3065aa3 100644
--- a/app/javascript/vue/repository_item_sidebar/repository_values/RepositoryStatusValue.vue
+++ b/app/javascript/vue/repository_item_sidebar/repository_values/RepositoryStatusValue.vue
@@ -17,6 +17,8 @@
:placeholder="i18n.t('repositories.item_card.dropdown_placeholder')"
:no-options-placeholder="i18n.t('repositories.item_card.dropdown_placeholder')"
:searchPlaceholder="i18n.t('repositories.item_card.dropdown_placeholder')"
+ className="h-[38px] !pl-3"
+ optionsClassName="max-h-[300px]"
>
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 ffca00fe9..bdf964a2c 100644
--- a/app/javascript/vue/repository_item_sidebar/repository_values/RepositoryStockValue.vue
+++ b/app/javascript/vue/repository_item_sidebar/repository_values/RepositoryStockValue.vue
@@ -18,7 +18,7 @@
{{ values.stock_formatted }}
-
+
{{ i18n.t(`repositories.item_card.repository_stock_value.${canEdit ? 'placeholder' : 'no_stock'}`) }}
diff --git a/app/javascript/vue/repository_item_sidebar/repository_values/RepositoryTextValue.vue b/app/javascript/vue/repository_item_sidebar/repository_values/RepositoryTextValue.vue
index e8ce005e9..fa66fe4ca 100644
--- a/app/javascript/vue/repository_item_sidebar/repository_values/RepositoryTextValue.vue
+++ b/app/javascript/vue/repository_item_sidebar/repository_values/RepositoryTextValue.vue
@@ -16,7 +16,7 @@
+ @update="update"
+ className="px-3" />
+ @blur="handleBlur">
-
+
-
-
-
-
+
+
+
{{ i18n.t('general.clear') }}
-
option.id)"
:class="{
'disabled cursor-default': options.length === selectedValues.length,
@@ -38,30 +34,38 @@
-
-
-
-
-
+
+
+
+
+
+
+
+
{{ option.label }}
-
{{ option.label }}
-
-
-
- {{ this.noOptionsPlaceholder }}
-
-
-
+
+
+ {{ this.noOptionsPlaceholder }}
+
+
+
+