Skip to content

Commit a9a9f4a

Browse files
change "dataset name" to "element identifier"; only show identifiers
(no `hid` or `extension`)
1 parent 8269440 commit a9a9f4a

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

client/src/components/Collections/ListCollectionCreator.vue

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -557,13 +557,13 @@ function selectionAsHdaSummary(value: any): HDASummary {
557557
</strong>
558558
{{
559559
localize(
560-
"Once you have made your selection, if you wish to rename the elements in the list, click"
560+
"Once you have made your selection, if you wish to rename identifiers for elements in the list, click"
561561
)
562562
}}
563563
<i data-target=".rename-elements">
564564
{{ localize("Rename list elements") }}
565565
</i>
566-
{{ localize(". This opens a modal where you can rename the elements individually.") }}
566+
{{ localize(". This opens a modal where you can change the identifiers individually.") }}
567567
</p>
568568
</template>
569569

@@ -727,13 +727,14 @@ function selectionAsHdaSummary(value: any): HDASummary {
727727
class="rename-elements-modal"
728728
:show.sync="renamingElements"
729729
size="small"
730-
title="Click on dataset names to rename them">
730+
title="Click on element identifiers to change them">
731731
<DatasetCollectionElementView
732732
v-for="value in inListElements"
733733
:key="value.id"
734734
class="w-100"
735+
hide-hid
735736
:element="selectionAsHdaSummary(value)"
736-
:hide-extension="!showElementExtension"
737+
hide-extension
737738
@onRename="(name) => renameElement(value, name)" />
738739
</GModal>
739740
</div>

client/src/components/Collections/ListDatasetCollectionElementView.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ interface Props {
1414
hasActions?: boolean;
1515
notEditable?: boolean;
1616
hideExtension?: boolean;
17-
showHid?: boolean;
17+
hideHid?: boolean;
1818
textOnly?: boolean;
1919
}
2020
@@ -55,7 +55,7 @@ watch(
5555
@keyup.enter="emit('element-is-selected', element)"
5656
@click="emit('element-is-selected', element)">
5757
<span class="d-flex flex-gapx-1">
58-
<span v-if="element.hid ?? true">{{ element.hid }}:</span>
58+
<span v-if="!hideHid && (element.hid ?? true)">{{ element.hid }}:</span>
5959
<strong>
6060
<ClickToEdit v-if="!notEditable" v-model="elementName" :title="localize('Click to rename')" />
6161
<span v-else>{{ elementName }}</span>

0 commit comments

Comments
 (0)