Skip to content

Commit 6c28f3b

Browse files
authored
Show missing role name in link share panel (#12012)
1 parent 9238bf6 commit 6c28f3b

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Bugfix: Show missing role name in link share panel
2+
3+
We've fixed a bug where the role name was missing in the link share panel.
4+
5+
https://github.com/owncloud/web/pull/12012

packages/web-pkg/src/components/CreateLinkModal.vue

+10-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@
1010
</div>
1111
<div v-else class="oc-flex oc-flex-middle">
1212
<oc-icon class="oc-mr-s" :name="selectedTypeIcon" fill-type="line" />
13-
<span v-text="selectedTypeDescription" />
13+
<div class="oc-flex oc-flex-column">
14+
<span class="oc-text-bold" v-text="selectedTypeDisplayName" />
15+
<span class="oc-text-small" v-text="selectedTypeDescription" />
16+
</div>
1417
</div>
1518
<oc-button
1619
v-if="!isAdvancedMode"
@@ -187,6 +190,11 @@ export default defineComponent({
187190
const selectedTypeDescription = computed(() =>
188191
$gettext(getLinkRoleByType(unref(selectedType)).description)
189192
)
193+
194+
const selectedTypeDisplayName = computed(() =>
195+
$gettext(getLinkRoleByType(unref(selectedType)).displayName)
196+
)
197+
190198
const selectedTypeIcon = computed(() => getLinkRoleByType(unref(selectedType)).icon)
191199
192200
const availableLinkTypes = computed(() => getAvailableLinkTypes({ isFolder: unref(isFolder) }))
@@ -313,6 +321,7 @@ export default defineComponent({
313321
availableLinkTypes,
314322
selectedType,
315323
selectedTypeIcon,
324+
selectedTypeDisplayName,
316325
selectedTypeDescription,
317326
isSelectedLinkType,
318327
updateSelectedLinkType,

0 commit comments

Comments
 (0)