Skip to content

Commit

Permalink
Call getFileInfo endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexAndBear committed Apr 15, 2024
1 parent daf62e7 commit 89e7258
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/web-pkg/src/components/CreateLinkModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@
appearance="filled"
variation="primary"
@click="$emit('confirm')"
>{{ $gettext('Copy link') }}
>{{ confirmButtonText }}
</oc-button>
</div>
</template>
Expand Down Expand Up @@ -192,6 +192,10 @@ export default defineComponent({
const isFolder = computed(() => props.resources.every(({ isFolder }) => isFolder))
const confirmButtonText = computed(() => {
return unref(isEmbedEnabled) ? $gettext('Share link(s)') : $gettext('Copy link')
})
const passwordInputKey = ref(uuidV4())
const roleRefs = ref<Record<string, InstanceType<typeof OcButton>>>({})
Expand Down Expand Up @@ -345,6 +349,7 @@ export default defineComponent({
updateSelectedLinkType,
updatePassword,
getLinkRoleByType,
confirmButtonText,
// unit tests
onConfirm
Expand Down

0 comments on commit 89e7258

Please sign in to comment.