summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2022-08-22 14:29:58 +0200
committerVincent Petry <vincent@nextcloud.com>2022-08-25 08:38:00 +0200
commitd0473214cd2582ec63f4a5021a8f5927f67bc98f (patch)
tree455708226929d13d55e24bde90833e1508a38714 /apps/files_sharing
parent708018795863999b674d1e3e900313785893d6a8 (diff)
downloadnextcloud-server-d0473214cd2582ec63f4a5021a8f5927f67bc98f.tar.gz
nextcloud-server-d0473214cd2582ec63f4a5021a8f5927f67bc98f.zip
Add Nc prefix to Nc vue component names
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Diffstat (limited to 'apps/files_sharing')
-rw-r--r--apps/files_sharing/src/collaborationresources.js4
-rw-r--r--apps/files_sharing/src/components/SharePermissionsEditor.vue52
-rw-r--r--apps/files_sharing/src/components/SharingEntry.vue68
-rw-r--r--apps/files_sharing/src/components/SharingEntryInherited.vue30
-rw-r--r--apps/files_sharing/src/components/SharingEntryInternal.vue8
-rw-r--r--apps/files_sharing/src/components/SharingEntryLink.vue152
-rw-r--r--apps/files_sharing/src/components/SharingEntrySimple.vue8
-rw-r--r--apps/files_sharing/src/components/SharingInput.vue8
-rw-r--r--apps/files_sharing/src/views/SharingInherited.vue8
-rw-r--r--apps/files_sharing/src/views/SharingTab.vue6
10 files changed, 172 insertions, 172 deletions
diff --git a/apps/files_sharing/src/collaborationresources.js b/apps/files_sharing/src/collaborationresources.js
index c1849939057..1e6eda02a93 100644
--- a/apps/files_sharing/src/collaborationresources.js
+++ b/apps/files_sharing/src/collaborationresources.js
@@ -23,7 +23,7 @@
import Vue from 'vue'
import Vuex from 'vuex'
-import PopoverMenu from '@nextcloud/vue/dist/Components/PopoverMenu'
+import NcPopoverMenu from '@nextcloud/vue/dist/Components/NcPopoverMenu'
import Tooltip from '@nextcloud/vue/dist/Directives/Tooltip'
import ClickOutside from 'vue-click-outside'
@@ -33,7 +33,7 @@ Vue.prototype.t = t
Tooltip.options.defaultHtml = false
// eslint-disable-next-line vue/match-component-file-name
-Vue.component('PopoverMenu', PopoverMenu)
+Vue.component('NcPopoverMenu', NcPopoverMenu)
Vue.directive('ClickOutside', ClickOutside)
Vue.directive('Tooltip', Tooltip)
Vue.use(Vuex)
diff --git a/apps/files_sharing/src/components/SharePermissionsEditor.vue b/apps/files_sharing/src/components/SharePermissionsEditor.vue
index 4885f9fb920..c5e652b2cda 100644
--- a/apps/files_sharing/src/components/SharePermissionsEditor.vue
+++ b/apps/files_sharing/src/components/SharePermissionsEditor.vue
@@ -24,79 +24,79 @@
<li>
<ul>
<!-- file -->
- <ActionCheckbox v-if="!isFolder"
+ <NcActionCheckbox v-if="!isFolder"
:checked="shareHasPermissions(atomicPermissions.UPDATE)"
:disabled="saving"
@update:checked="toggleSharePermissions(atomicPermissions.UPDATE)">
{{ t('files_sharing', 'Allow editing') }}
- </ActionCheckbox>
+ </NcActionCheckbox>
<!-- folder -->
<template v-if="isFolder && fileHasCreatePermission && config.isPublicUploadEnabled">
<template v-if="!showCustomPermissionsForm">
- <ActionRadio :checked="sharePermissionEqual(bundledPermissions.READ_ONLY)"
+ <NcActionRadio :checked="sharePermissionEqual(bundledPermissions.READ_ONLY)"
:value="bundledPermissions.READ_ONLY"
:name="randomFormName"
:disabled="saving"
@change="setSharePermissions(bundledPermissions.READ_ONLY)">
{{ t('files_sharing', 'Read only') }}
- </ActionRadio>
+ </NcActionRadio>
- <ActionRadio :checked="sharePermissionEqual(bundledPermissions.UPLOAD_AND_UPDATE)"
+ <NcActionRadio :checked="sharePermissionEqual(bundledPermissions.UPLOAD_AND_UPDATE)"
:value="bundledPermissions.UPLOAD_AND_UPDATE"
:disabled="saving"
:name="randomFormName"
@change="setSharePermissions(bundledPermissions.UPLOAD_AND_UPDATE)">
{{ t('files_sharing', 'Allow upload and editing') }}
- </ActionRadio>
- <ActionRadio :checked="sharePermissionEqual(bundledPermissions.FILE_DROP)"
+ </NcActionRadio>
+ <NcActionRadio :checked="sharePermissionEqual(bundledPermissions.FILE_DROP)"
:value="bundledPermissions.FILE_DROP"
:disabled="saving"
:name="randomFormName"
class="sharing-entry__action--public-upload"
@change="setSharePermissions(bundledPermissions.FILE_DROP)">
{{ t('files_sharing', 'File drop (upload only)') }}
- </ActionRadio>
+ </NcActionRadio>
<!-- custom permissions button -->
- <ActionButton :title="t('files_sharing', 'Custom permissions')"
+ <NcActionButton :title="t('files_sharing', 'Custom permissions')"
@click="showCustomPermissionsForm = true">
<template #icon>
<Tune />
</template>
{{ sharePermissionsIsBundle ? "" : sharePermissionsSummary }}
- </ActionButton>
+ </NcActionButton>
</template>
<!-- custom permissions -->
<span v-else :class="{error: !sharePermissionsSetIsValid}">
- <ActionCheckbox :checked="shareHasPermissions(atomicPermissions.READ)"
+ <NcActionCheckbox :checked="shareHasPermissions(atomicPermissions.READ)"
:disabled="saving || !canToggleSharePermissions(atomicPermissions.READ)"
@update:checked="toggleSharePermissions(atomicPermissions.READ)">
{{ t('files_sharing', 'Read') }}
- </ActionCheckbox>
- <ActionCheckbox :checked="shareHasPermissions(atomicPermissions.CREATE)"
+ </NcActionCheckbox>
+ <NcActionCheckbox :checked="shareHasPermissions(atomicPermissions.CREATE)"
:disabled="saving || !canToggleSharePermissions(atomicPermissions.CREATE)"
@update:checked="toggleSharePermissions(atomicPermissions.CREATE)">
{{ t('files_sharing', 'Upload') }}
- </ActionCheckbox>
- <ActionCheckbox :checked="shareHasPermissions(atomicPermissions.UPDATE)"
+ </NcActionCheckbox>
+ <NcActionCheckbox :checked="shareHasPermissions(atomicPermissions.UPDATE)"
:disabled="saving || !canToggleSharePermissions(atomicPermissions.UPDATE)"
@update:checked="toggleSharePermissions(atomicPermissions.UPDATE)">
{{ t('files_sharing', 'Edit') }}
- </ActionCheckbox>
- <ActionCheckbox :checked="shareHasPermissions(atomicPermissions.DELETE)"
+ </NcActionCheckbox>
+ <NcActionCheckbox :checked="shareHasPermissions(atomicPermissions.DELETE)"
:disabled="saving || !canToggleSharePermissions(atomicPermissions.DELETE)"
@update:checked="toggleSharePermissions(atomicPermissions.DELETE)">
{{ t('files_sharing', 'Delete') }}
- </ActionCheckbox>
+ </NcActionCheckbox>
- <ActionButton @click="showCustomPermissionsForm = false">
+ <NcActionButton @click="showCustomPermissionsForm = false">
<template #icon>
<ChevronLeft />
</template>
{{ t('files_sharing', 'Bundled permissions') }}
- </ActionButton>
+ </NcActionButton>
</span>
</template>
</ul>
@@ -104,9 +104,9 @@
</template>
<script>
-import ActionButton from '@nextcloud/vue/dist/Components/ActionButton'
-import ActionRadio from '@nextcloud/vue/dist/Components/ActionRadio'
-import ActionCheckbox from '@nextcloud/vue/dist/Components/ActionCheckbox'
+import NcActionButton from '@nextcloud/vue/dist/Components/NcActionButton'
+import NcActionRadio from '@nextcloud/vue/dist/Components/NcActionRadio'
+import NcActionCheckbox from '@nextcloud/vue/dist/Components/NcActionCheckbox'
import SharesMixin from '../mixins/SharesMixin'
import {
@@ -125,9 +125,9 @@ export default {
name: 'SharePermissionsEditor',
components: {
- ActionButton,
- ActionCheckbox,
- ActionRadio,
+ NcActionButton,
+ NcActionCheckbox,
+ NcActionRadio,
Tune,
ChevronLeft,
},
diff --git a/apps/files_sharing/src/components/SharingEntry.vue b/apps/files_sharing/src/components/SharingEntry.vue
index 4748f75817b..c77bdd4292a 100644
--- a/apps/files_sharing/src/components/SharingEntry.vue
+++ b/apps/files_sharing/src/components/SharingEntry.vue
@@ -22,7 +22,7 @@
<template>
<li class="sharing-entry">
- <Avatar class="sharing-entry__avatar"
+ <NcAvatar class="sharing-entry__avatar"
:is-no-user="share.type !== SHARE_TYPES.SHARE_TYPE_USER"
:user="share.shareWith"
:display-name="share.shareWithDisplayName"
@@ -39,61 +39,61 @@
<span>{{ share.status.message || '' }}</span>
</p>
</component>
- <Actions menu-align="right"
+ <NcActions menu-align="right"
class="sharing-entry__actions"
@close="onMenuClose">
<template v-if="share.canEdit">
<!-- edit permission -->
- <ActionCheckbox ref="canEdit"
+ <NcActionCheckbox ref="canEdit"
:checked.sync="canEdit"
:value="permissionsEdit"
:disabled="saving || !canSetEdit">
{{ t('files_sharing', 'Allow editing') }}
- </ActionCheckbox>
+ </NcActionCheckbox>
<!-- create permission -->
- <ActionCheckbox v-if="isFolder"
+ <NcActionCheckbox v-if="isFolder"
ref="canCreate"
:checked.sync="canCreate"
:value="permissionsCreate"
:disabled="saving || !canSetCreate">
{{ t('files_sharing', 'Allow creating') }}
- </ActionCheckbox>
+ </NcActionCheckbox>
<!-- delete permission -->
- <ActionCheckbox v-if="isFolder"
+ <NcActionCheckbox v-if="isFolder"
ref="canDelete"
:checked.sync="canDelete"
:value="permissionsDelete"
:disabled="saving || !canSetDelete">
{{ t('files_sharing', 'Allow deleting') }}
- </ActionCheckbox>
+ </NcActionCheckbox>
<!-- reshare permission -->
- <ActionCheckbox v-if="config.isResharingAllowed"
+ <NcActionCheckbox v-if="config.isResharingAllowed"
ref="canReshare"
:checked.sync="canReshare"
:value="permissionsShare"
:disabled="saving || !canSetReshare">
{{ t('files_sharing', 'Allow resharing') }}
- </ActionCheckbox>
+ </NcActionCheckbox>
- <ActionCheckbox ref="canDownload"
+ <NcActionCheckbox ref="canDownload"
:checked.sync="canDownload"
v-if="isSetDownloadButtonVisible"
:disabled="saving || !canSetDownload">
{{ allowDownloadText }}
- </ActionCheckbox>
+ </NcActionCheckbox>
<!-- expiration date -->
- <ActionCheckbox :checked.sync="hasExpirationDate"
+ <NcActionCheckbox :checked.sync="hasExpirationDate"
:disabled="config.isDefaultInternalExpireDateEnforced || saving"
@uncheck="onExpirationDisable">
{{ config.isDefaultInternalExpireDateEnforced
? t('files_sharing', 'Expiration date enforced')
: t('files_sharing', 'Set expiration date') }}
- </ActionCheckbox>
- <ActionInput v-if="hasExpirationDate"
+ </NcActionCheckbox>
+ <NcActionInput v-if="hasExpirationDate"
ref="expireDate"
v-tooltip.auto="{
content: errors.expireDate,
@@ -110,16 +110,16 @@
:disabled-date="disabledDate"
@update:value="onExpirationChange">
{{ t('files_sharing', 'Enter a date') }}
- </ActionInput>
+ </NcActionInput>
<!-- note -->
<template v-if="canHaveNote">
- <ActionCheckbox :checked.sync="hasNote"
+ <NcActionCheckbox :checked.sync="hasNote"
:disabled="saving"
@uncheck="queueUpdate('note')">
{{ t('files_sharing', 'Note to recipient') }}
- </ActionCheckbox>
- <ActionTextEditable v-if="hasNote"
+ </NcActionCheckbox>
+ <NcActionTextEditable v-if="hasNote"
ref="note"
v-tooltip.auto="{
content: errors.note,
@@ -135,23 +135,23 @@
</template>
</template>
- <ActionButton v-if="share.canDelete"
+ <NcActionButton v-if="share.canDelete"
icon="icon-close"
:disabled="saving"
@click.prevent="onDelete">
{{ t('files_sharing', 'Unshare') }}
- </ActionButton>
- </Actions>
+ </NcActionButton>
+ </NcActions>
</li>
</template>
<script>
-import Avatar from '@nextcloud/vue/dist/Components/Avatar'
-import Actions from '@nextcloud/vue/dist/Components/Actions'
-import ActionButton from '@nextcloud/vue/dist/Components/ActionButton'
-import ActionCheckbox from '@nextcloud/vue/dist/Components/ActionCheckbox'
-import ActionInput from '@nextcloud/vue/dist/Components/ActionInput'
-import ActionTextEditable from '@nextcloud/vue/dist/Components/ActionTextEditable'
+import NcAvatar from '@nextcloud/vue/dist/Components/NcAvatar'
+import NcActions from '@nextcloud/vue/dist/Components/NcActions'
+import NcActionButton from '@nextcloud/vue/dist/Components/NcActionButton'
+import NcActionCheckbox from '@nextcloud/vue/dist/Components/NcActionCheckbox'
+import NcActionInput from '@nextcloud/vue/dist/Components/NcActionInput'
+import NcActionTextEditable from '@nextcloud/vue/dist/Components/NcActionTextEditable'
import Tooltip from '@nextcloud/vue/dist/Directives/Tooltip'
import SharesMixin from '../mixins/SharesMixin'
@@ -160,12 +160,12 @@ export default {
name: 'SharingEntry',
components: {
- Actions,
- ActionButton,
- ActionCheckbox,
- ActionInput,
- ActionTextEditable,
- Avatar,
+ NcActions,
+ NcActionButton,
+ NcActionCheckbox,
+ NcActionInput,
+ NcActionTextEditable,
+ NcAvatar,
},
directives: {
diff --git a/apps/files_sharing/src/components/SharingEntryInherited.vue b/apps/files_sharing/src/components/SharingEntryInherited.vue
index 72a513cfb1f..ff930f1aec8 100644
--- a/apps/files_sharing/src/components/SharingEntryInherited.vue
+++ b/apps/files_sharing/src/components/SharingEntryInherited.vue
@@ -25,34 +25,34 @@
class="sharing-entry__inherited"
:title="share.shareWithDisplayName">
<template #avatar>
- <Avatar :user="share.shareWith"
+ <NcAvatar :user="share.shareWith"
:display-name="share.shareWithDisplayName"
class="sharing-entry__avatar"
tooltip-message="" />
</template>
- <ActionText icon="icon-user">
+ <NcActionText icon="icon-user">
{{ t('files_sharing', 'Added by {initiator}', { initiator: share.ownerDisplayName }) }}
- </ActionText>
- <ActionLink v-if="share.viaPath && share.viaFileid"
+ </NcActionText>
+ <NcActionLink v-if="share.viaPath && share.viaFileid"
icon="icon-folder"
:href="viaFileTargetUrl">
{{ t('files_sharing', 'Via “{folder}”', {folder: viaFolderName} ) }}
- </ActionLink>
- <ActionButton v-if="share.canDelete"
+ </NcActionLink>
+ <NcActionButton v-if="share.canDelete"
icon="icon-close"
@click.prevent="onDelete">
{{ t('files_sharing', 'Unshare') }}
- </actionbutton>
+ </NcActionButton>
</SharingEntrySimple>
</template>
<script>
import { generateUrl } from '@nextcloud/router'
import { basename } from '@nextcloud/paths'
-import Avatar from '@nextcloud/vue/dist/Components/Avatar'
-import ActionButton from '@nextcloud/vue/dist/Components/ActionButton'
-import ActionLink from '@nextcloud/vue/dist/Components/ActionLink'
-import ActionText from '@nextcloud/vue/dist/Components/ActionText'
+import NcAvatar from '@nextcloud/vue/dist/Components/NcAvatar'
+import NcActionButton from '@nextcloud/vue/dist/Components/NcActionButton'
+import NcActionLink from '@nextcloud/vue/dist/Components/NcActionLink'
+import NcActionText from '@nextcloud/vue/dist/Components/NcActionText'
// eslint-disable-next-line no-unused-vars
import Share from '../models/Share'
@@ -63,10 +63,10 @@ export default {
name: 'SharingEntryInherited',
components: {
- ActionButton,
- ActionLink,
- ActionText,
- Avatar,
+ NcActionButton,
+ NcActionLink,
+ NcActionText,
+ NcAvatar,
SharingEntrySimple,
},
diff --git a/apps/files_sharing/src/components/SharingEntryInternal.vue b/apps/files_sharing/src/components/SharingEntryInternal.vue
index c2dbc5a4edc..468275aac2c 100644
--- a/apps/files_sharing/src/components/SharingEntryInternal.vue
+++ b/apps/files_sharing/src/components/SharingEntryInternal.vue
@@ -8,28 +8,28 @@
<div class="avatar-external icon-external-white" />
</template>
- <ActionLink ref="copyButton"
+ <NcActionLink ref="copyButton"
:href="internalLink"
:aria-label="t('files_sharing', 'Copy internal link to clipboard')"
target="_blank"
:icon="copied && copySuccess ? 'icon-checkmark-color' : 'icon-clippy'"
@click.prevent="copyLink">
{{ clipboardTooltip }}
- </ActionLink>
+ </NcActionLink>
</SharingEntrySimple>
</ul>
</template>
<script>
import { generateUrl } from '@nextcloud/router'
-import ActionLink from '@nextcloud/vue/dist/Components/ActionLink'
+import NcActionLink from '@nextcloud/vue/dist/Components/NcActionLink'
import SharingEntrySimple from './SharingEntrySimple'
export default {
name: 'SharingEntryInternal',
components: {
- ActionLink,
+ NcActionLink,
SharingEntrySimple,
},
diff --git a/apps/files_sharing/src/components/SharingEntryLink.vue b/apps/files_sharing/src/components/SharingEntryLink.vue
index 328d0108332..07770e5a87c 100644
--- a/apps/files_sharing/src/components/SharingEntryLink.vue
+++ b/apps/files_sharing/src/components/SharingEntryLink.vue
@@ -22,7 +22,7 @@
<template>
<li :class="{'sharing-entry--share': share}" class="sharing-entry sharing-entry__link">
- <Avatar :is-no-user="true"
+ <NcAvatar :is-no-user="true"
:icon-class="isEmailShareType ? 'avatar-link-share icon-mail-white' : 'avatar-link-share icon-public-white'"
class="sharing-entry__avatar" />
<div class="sharing-entry__desc">
@@ -35,46 +35,46 @@
</div>
<!-- clipboard -->
- <Actions v-if="share && !isEmailShareType && share.token"
+ <NcActions v-if="share && !isEmailShareType && share.token"
ref="copyButton"
class="sharing-entry__copy">
- <ActionLink :href="shareLink"
+ <NcActionLink :href="shareLink"
target="_blank"
:aria-label="t('files_sharing', 'Copy public link to clipboard')"
:icon="copied && copySuccess ? 'icon-checkmark-color' : 'icon-clippy'"
@click.stop.prevent="copyLink">
{{ clipboardTooltip }}
- </ActionLink>
- </Actions>
+ </NcActionLink>
+ </NcActions>
<!-- pending actions -->
- <Actions v-if="!pending && (pendingPassword || pendingExpirationDate)"
+ <NcActions v-if="!pending && (pendingPassword || pendingExpirationDate)"
class="sharing-entry__actions"
menu-align="right"
:open.sync="open"
@close="onNewLinkShare">
<!-- pending data menu -->
- <ActionText v-if="errors.pending"
+ <NcActionText v-if="errors.pending"
icon="icon-error"
:class="{ error: errors.pending}">
{{ errors.pending }}
- </ActionText>
- <ActionText v-else icon="icon-info">
+ </NcActionText>
+ <NcActionText v-else icon="icon-info">
{{ t('files_sharing', 'Please enter the following required information before creating the share') }}
- </ActionText>
+ </NcActionText>
<!-- password -->
- <ActionText v-if="pendingPassword" icon="icon-password">
+ <NcActionText v-if="pendingPassword" icon="icon-password">
{{ t('files_sharing', 'Password protection (enforced)') }}
- </ActionText>
- <ActionCheckbox v-else-if="config.enableLinkPasswordByDefault"
+ </NcActionText>
+ <NcActionCheckbox v-else-if="config.enableLinkPasswordByDefault"
:checked.sync="isPasswordProtected"
:disabled="config.enforcePasswordForPublicLink || saving"
class="share-link-password-checkbox"
@uncheck="onPasswordDisable">
{{ t('files_sharing', 'Password protection') }}
- </ActionCheckbox>
- <ActionInput v-if="pendingPassword || share.password"
+ </NcActionCheckbox>
+ <NcActionInput v-if="pendingPassword || share.password"
v-tooltip.auto="{
content: errors.password,
show: errors.password,
@@ -90,13 +90,13 @@
autocomplete="new-password"
@submit="onNewLinkShare">
{{ t('files_sharing', 'Enter a password') }}
- </ActionInput>
+ </NcActionInput>
<!-- expiration date -->
- <ActionText v-if="pendingExpirationDate" icon="icon-calendar-dark">
+ <NcActionText v-if="pendingExpirationDate" icon="icon-calendar-dark">
{{ t('files_sharing', 'Expiration date (enforced)') }}
- </ActionText>
- <ActionInput v-if="pendingExpirationDate"
+ </NcActionText>
+ <NcActionInput v-if="pendingExpirationDate"
v-model="share.expireDate"
v-tooltip.auto="{
content: errors.expireDate,
@@ -115,18 +115,18 @@
<!-- let's not submit when picked, the user
might want to still edit or copy the password -->
{{ t('files_sharing', 'Enter a date') }}
- </ActionInput>
+ </NcActionInput>
- <ActionButton icon="icon-checkmark" @click.prevent.stop="onNewLinkShare">
+ <NcActionButton icon="icon-checkmark" @click.prevent.stop="onNewLinkShare">
{{ t('files_sharing', 'Create share') }}
- </ActionButton>
- <ActionButton icon="icon-close" @click.prevent.stop="onCancel">
+ </NcActionButton>
+ <NcActionButton icon="icon-close" @click.prevent.stop="onCancel">
{{ t('files_sharing', 'Cancel') }}
- </ActionButton>
- </Actions>
+ </NcActionButton>
+ </NcActions>
<!-- actions -->
- <Actions v-else-if="!loading"
+ <NcActions v-else-if="!loading"
class="sharing-entry__actions"
menu-align="right"
:open.sync="open"
@@ -134,7 +134,7 @@
<template v-if="share">
<template v-if="share.canEdit && canReshare">
<!-- Custom Label -->
- <ActionInput ref="label"
+ <NcActionInput ref="label"
v-tooltip.auto="{
content: errors.label,
show: errors.label,
@@ -150,30 +150,30 @@
@update:value="onLabelChange"
@submit="onLabelSubmit">
{{ t('files_sharing', 'Share label') }}
- </ActionInput>
+ </NcActionInput>
<SharePermissionsEditor :can-reshare="canReshare"
:share.sync="share"
:file-info="fileInfo" />
- <ActionSeparator />
+ <NcActionSeparator />
- <ActionCheckbox :checked.sync="share.hideDownload"
+ <NcActionCheckbox :checked.sync="share.hideDownload"
:disabled="saving || canChangeHideDownload"
@change="queueUpdate('hideDownload')">
{{ t('files_sharing', 'Hide download') }}
- </ActionCheckbox>
+ </NcActionCheckbox>
<!-- password -->
- <ActionCheckbox :checked.sync="isPasswordProtected"
+ <NcActionCheckbox :checked.sync="isPasswordProtected"
:disabled="config.enforcePasswordForPublicLink || saving"
class="share-link-password-checkbox"
@uncheck="onPasswordDisable">
{{ config.enforcePasswordForPublicLink
? t('files_sharing', 'Password protection (enforced)')
: t('files_sharing', 'Password protect') }}
- </ActionCheckbox>
- <ActionInput v-if="isPasswordProtected"
+ </NcActionCheckbox>
+ <NcActionInput v-if="isPasswordProtected"
ref="password"
v-tooltip.auto="{
content: errors.password,
@@ -192,33 +192,33 @@
@update:value="onPasswordChange"
@submit="onPasswordSubmit">
{{ t('files_sharing', 'Enter a password') }}
- </ActionInput>
- <ActionText v-if="isEmailShareType && passwordExpirationTime" icon="icon-info">
+ </NcActionInput>
+ <NcActionText v-if="isEmailShareType && passwordExpirationTime" icon="icon-info">
{{ t('files_sharing', 'Password expires {passwordExpirationTime}', {passwordExpirationTime}) }}
- </ActionText>
- <ActionText v-else-if="isEmailShareType && passwordExpirationTime !== null" icon="icon-error">
+ </NcActionText>
+ <NcActionText v-else-if="isEmailShareType && passwordExpirationTime !== null" icon="icon-error">
{{ t('files_sharing', 'Password expired') }}
- </ActionText>
+ </NcActionText>
<!-- password protected by Talk -->
- <ActionCheckbox v-if="isPasswordProtectedByTalkAvailable"
+ <NcActionCheckbox v-if="isPasswordProtectedByTalkAvailable"
:checked.sync="isPasswordProtectedByTalk"
:disabled="!canTogglePasswordProtectedByTalkAvailable || saving"
class="share-link-password-talk-checkbox"
@change="onPasswordProtectedByTalkChange">
{{ t('files_sharing', 'Video verification') }}
- </ActionCheckbox>
+ </NcActionCheckbox>
<!-- expiration date -->
- <ActionCheckbox :checked.sync="hasExpirationDate"
+ <NcActionCheckbox :checked.sync="hasExpirationDate"
:disabled="config.isDefaultExpireDateEnforced || saving"
class="share-link-expire-date-checkbox"
@uncheck="onExpirationDisable">
{{ config.isDefaultExpireDateEnforced
? t('files_sharing', 'Expiration date (enforced)')
: t('files_sharing', 'Set expiration date') }}
- </ActionCheckbox>
- <ActionInput v-if="hasExpirationDate"
+ </NcActionCheckbox>
+ <NcActionInput v-if="hasExpirationDate"
ref="expireDate"
v-tooltip.auto="{
content: errors.expireDate,
@@ -237,15 +237,15 @@
:disabled-date="disabledDate"
@update:value="onExpirationChange">
{{ t('files_sharing', 'Enter a date') }}
- </ActionInput>
+ </NcActionInput>
<!-- note -->
- <ActionCheckbox :checked.sync="hasNote"
+ <NcActionCheckbox :checked.sync="hasNote"
:disabled="saving"
@uncheck="queueUpdate('note')">
{{ t('files_sharing', 'Note to recipient') }}
- </ActionCheckbox>
- <ActionTextEditable v-if="hasNote"
+ </NcActionCheckbox>
+ <NcActionTextEditable v-if="hasNote"
ref="note"
v-tooltip.auto="{
content: errors.note,
@@ -262,7 +262,7 @@
@submit="onNoteSubmit" />
</template>
- <ActionSeparator />
+ <NcActionSeparator />
<!-- external actions -->
<ExternalShareAction v-for="action in externalLinkActions"
@@ -273,36 +273,36 @@
:share="share" />
<!-- external legacy sharing via url (social...) -->
- <ActionLink v-for="({icon, url, name}, index) in externalLegacyLinkActions"
+ <NcActionLink v-for="({icon, url, name}, index) in externalLegacyLinkActions"
:key="index"
:href="url(shareLink)"
:icon="icon"
target="_blank">
{{ name }}
- </ActionLink>
+ </NcActionLink>
- <ActionButton v-if="share.canDelete"
+ <NcActionButton v-if="share.canDelete"
icon="icon-close"
:disabled="saving"
@click.prevent="onDelete">
{{ t('files_sharing', 'Unshare') }}
- </ActionButton>
- <ActionButton v-if="!isEmailShareType && canReshare"
+ </NcActionButton>
+ <NcActionButton v-if="!isEmailShareType && canReshare"
class="new-share-link"
icon="icon-add"
@click.prevent.stop="onNewLinkShare">
{{ t('files_sharing', 'Add another link') }}
- </ActionButton>
+ </NcActionButton>
</template>
<!-- Create new share -->
- <ActionButton v-else-if="canReshare"
+ <NcActionButton v-else-if="canReshare"
class="new-share-link"
:icon="loading ? 'icon-loading-small' : 'icon-add'"
@click.prevent.stop="onNewLinkShare">
{{ t('files_sharing', 'Create a new share link') }}
- </ActionButton>
- </Actions>
+ </NcActionButton>
+ </NcActions>
<!-- loading indicator to replace the menu -->
<div v-else class="icon-loading-small sharing-entry__loading" />
@@ -314,15 +314,15 @@ import { generateUrl } from '@nextcloud/router'
import { Type as ShareTypes } from '@nextcloud/sharing'
import Vue from 'vue'
-import ActionButton from '@nextcloud/vue/dist/Components/ActionButton'
-import ActionCheckbox from '@nextcloud/vue/dist/Components/ActionCheckbox'
-import ActionInput from '@nextcloud/vue/dist/Components/ActionInput'
-import ActionLink from '@nextcloud/vue/dist/Components/ActionLink'
-import ActionText from '@nextcloud/vue/dist/Components/ActionText'
-import ActionSeparator from '@nextcloud/vue/dist/Components/ActionSeparator'
-import ActionTextEditable from '@nextcloud/vue/dist/Components/ActionTextEditable'
-import Actions from '@nextcloud/vue/dist/Components/Actions'
-import Avatar from '@nextcloud/vue/dist/Components/Avatar'
+import NcActionButton from '@nextcloud/vue/dist/Components/NcActionButton'
+import NcActionCheckbox from '@nextcloud/vue/dist/Components/NcActionCheckbox'
+import NcActionInput from '@nextcloud/vue/dist/Components/NcActionInput'
+import NcActionLink from '@nextcloud/vue/dist/Components/NcActionLink'
+import NcActionText from '@nextcloud/vue/dist/Components/NcActionText'
+import NcActionSeparator from '@nextcloud/vue/dist/Components/NcActionSeparator'
+import NcActionTextEditable from '@nextcloud/vue/dist/Components/NcActionTextEditable'
+import NcActions from '@nextcloud/vue/dist/Components/NcActions'
+import NcAvatar from '@nextcloud/vue/dist/Components/NcAvatar'
import Tooltip from '@nextcloud/vue/dist/Directives/Tooltip'
import ExternalShareAction from './ExternalShareAction'
@@ -335,15 +335,15 @@ export default {
name: 'SharingEntryLink',
components: {
- Actions,
- ActionButton,
- ActionCheckbox,
- ActionInput,
- ActionLink,
- ActionText,
- ActionTextEditable,
- ActionSeparator,
- Avatar,
+ NcActions,
+ NcActionButton,
+ NcActionCheckbox,
+ NcActionInput,
+ NcActionLink,
+ NcActionText,
+ NcActionTextEditable,
+ NcActionSeparator,
+ NcAvatar,
ExternalShareAction,
SharePermissionsEditor,
},
diff --git a/apps/files_sharing/src/components/SharingEntrySimple.vue b/apps/files_sharing/src/components/SharingEntrySimple.vue
index 70b55cbdce1..8b495b0743c 100644
--- a/apps/files_sharing/src/components/SharingEntrySimple.vue
+++ b/apps/files_sharing/src/components/SharingEntrySimple.vue
@@ -29,24 +29,24 @@
{{ subtitle }}
</p>
</div>
- <Actions v-if="$slots['default']"
+ <NcActions v-if="$slots['default']"
class="sharing-entry__actions"
menu-align="right"
:aria-expanded="ariaExpandedValue">
<slot />
- </Actions>
+ </NcActions>
</li>
</template>
<script>
-import Actions from '@nextcloud/vue/dist/Components/Actions'
+import NcActions from '@nextcloud/vue/dist/Components/NcActions'
import Tooltip from '@nextcloud/vue/dist/Directives/Tooltip'
export default {
name: 'SharingEntrySimple',
components: {
- Actions,
+ NcActions,
},
directives: {
diff --git a/apps/files_sharing/src/components/SharingInput.vue b/apps/files_sharing/src/components/SharingInput.vue
index df987942552..905de91bff1 100644
--- a/apps/files_sharing/src/components/SharingInput.vue
+++ b/apps/files_sharing/src/components/SharingInput.vue
@@ -21,7 +21,7 @@
-->
<template>
- <Multiselect ref="multiselect"
+ <NcMultiselect ref="multiselect"
class="sharing-input"
:clear-on-select="true"
:disabled="!canReshare"
@@ -45,7 +45,7 @@
<template #noResult>
{{ noResultText }}
</template>
- </Multiselect>
+ </NcMultiselect>
</template>
<script>
@@ -53,7 +53,7 @@ import { generateOcsUrl } from '@nextcloud/router'
import { getCurrentUser } from '@nextcloud/auth'
import axios from '@nextcloud/axios'
import debounce from 'debounce'
-import Multiselect from '@nextcloud/vue/dist/Components/Multiselect'
+import NcMultiselect from '@nextcloud/vue/dist/Components/NcMultiselect'
import Config from '../services/ConfigService'
import GeneratePassword from '../utils/GeneratePassword'
@@ -65,7 +65,7 @@ export default {
name: 'SharingInput',
components: {
- Multiselect,
+ NcMultiselect,
},
mixins: [ShareTypes, ShareRequests],
diff --git a/apps/files_sharing/src/views/SharingInherited.vue b/apps/files_sharing/src/views/SharingInherited.vue
index 18226b5859b..0f7d9d8b55b 100644
--- a/apps/files_sharing/src/views/SharingInherited.vue
+++ b/apps/files_sharing/src/views/SharingInherited.vue
@@ -30,11 +30,11 @@
<template #avatar>
<div class="avatar-shared icon-more-white" />
</template>
- <ActionButton :icon="showInheritedSharesIcon"
+ <NcActionButton :icon="showInheritedSharesIcon"
:aria-label="mainTitle"
@click.prevent.stop="toggleInheritedShares">
{{ toggleTooltip }}
- </ActionButton>
+ </NcActionButton>
</SharingEntrySimple>
<!-- Inherited shares list -->
@@ -47,7 +47,7 @@
<script>
import { generateOcsUrl } from '@nextcloud/router'
-import ActionButton from '@nextcloud/vue/dist/Components/ActionButton'
+import NcActionButton from '@nextcloud/vue/dist/Components/NcActionButton'
import axios from '@nextcloud/axios'
import Share from '../models/Share'
@@ -58,7 +58,7 @@ export default {
name: 'SharingInherited',
components: {
- ActionButton,
+ NcActionButton,
SharingEntryInherited,
SharingEntrySimple,
},
diff --git a/apps/files_sharing/src/views/SharingTab.vue b/apps/files_sharing/src/views/SharingTab.vue
index b381dfc2f14..2a03553801e 100644
--- a/apps/files_sharing/src/views/SharingTab.vue
+++ b/apps/files_sharing/src/views/SharingTab.vue
@@ -33,7 +33,7 @@
<!-- shared with me information -->
<SharingEntrySimple v-if="isSharedWithMe" v-bind="sharedWithMe" class="sharing-entry__reshare">
<template #avatar>
- <Avatar :user="sharedWithMe.user"
+ <NcAvatar :user="sharedWithMe.user"
:display-name="sharedWithMe.displayName"
class="sharing-entry__avatar"
tooltip-message="" />
@@ -88,7 +88,7 @@
<script>
import { CollectionList } from 'nextcloud-vue-collections'
import { generateOcsUrl } from '@nextcloud/router'
-import Avatar from '@nextcloud/vue/dist/Components/Avatar'
+import NcAvatar from '@nextcloud/vue/dist/Components/NcAvatar'
import axios from '@nextcloud/axios'
import { loadState } from '@nextcloud/initial-state'
@@ -108,7 +108,7 @@ export default {
name: 'SharingTab',
components: {
- Avatar,
+ NcAvatar,
CollectionList,
SharingEntryInternal,
SharingEntrySimple,