diff options
Diffstat (limited to 'apps/files_sharing/src/components/SharingEntryLink.vue')
-rw-r--r-- | apps/files_sharing/src/components/SharingEntryLink.vue | 59 |
1 files changed, 40 insertions, 19 deletions
diff --git a/apps/files_sharing/src/components/SharingEntryLink.vue b/apps/files_sharing/src/components/SharingEntryLink.vue index 4c11ea4b70a..af2ea4cc6e5 100644 --- a/apps/files_sharing/src/components/SharingEntryLink.vue +++ b/apps/files_sharing/src/components/SharingEntryLink.vue @@ -400,7 +400,8 @@ export default { * Return the current share permissions * We always ignore the SHARE permission as this is used for the * federated sharing. - * @returns {number} + * + * @return {number} */ sharePermissions() { return this.share.permissions & ~OC.PERMISSION_SHARE @@ -409,7 +410,8 @@ export default { * Generate a unique random id for this SharingEntryLink only * This allows ActionRadios to have the same name prop * but not to impact others SharingEntryLink - * @returns {string} + * + * @return {string} */ randomId() { return Math.random().toString(27).substr(2) @@ -417,7 +419,8 @@ export default { /** * Link share label - * @returns {string} + * + * @return {string} */ title() { // if we have a valid existing share (not pending) @@ -452,7 +455,8 @@ export default { /** * Show the email on a second line if a label is set for mail shares - * @returns {string} + * + * @return {string} */ subtitle() { if (this.isEmailShareType @@ -464,7 +468,8 @@ export default { /** * Does the current share have an expiration date - * @returns {boolean} + * + * @return {boolean} */ hasExpirationDate: { get() { @@ -490,7 +495,8 @@ export default { /** * Is the current share password protected ? - * @returns {boolean} + * + * @return {boolean} */ isPasswordProtected: { get() { @@ -506,7 +512,8 @@ export default { /** * Is Talk enabled? - * @returns {boolean} + * + * @return {boolean} */ isTalkEnabled() { return OC.appswebroots.spreed !== undefined @@ -514,7 +521,8 @@ export default { /** * Is it possible to protect the password by Talk? - * @returns {boolean} + * + * @return {boolean} */ isPasswordProtectedByTalkAvailable() { return this.isPasswordProtected && this.isTalkEnabled @@ -522,7 +530,8 @@ export default { /** * Is the current share password protected by Talk? - * @returns {boolean} + * + * @return {boolean} */ isPasswordProtectedByTalk: { get() { @@ -535,7 +544,8 @@ export default { /** * Is the current share an email share ? - * @returns {boolean} + * + * @return {boolean} */ isEmailShareType() { return this.share @@ -561,7 +571,8 @@ export default { * Pending data. * If the share still doesn't have an id, it is not synced * Therefore this is still not valid and requires user input - * @returns {boolean} + * + * @return {boolean} */ pendingPassword() { return this.config.enforcePasswordForPublicLink && this.share && !this.share.id @@ -572,7 +583,8 @@ export default { /** * Can the recipient edit the file ? - * @returns {boolean} + * + * @return {boolean} */ canUpdate: { get() { @@ -594,7 +606,8 @@ export default { /** * Is the current share a folder ? * TODO: move to a proper FileInfo model? - * @returns {boolean} + * + * @return {boolean} */ isFolder() { return this.fileInfo.type === 'dir' @@ -603,7 +616,8 @@ export default { /** * Does the current file/folder have create permissions * TODO: move to a proper FileInfo model? - * @returns {boolean} + * + * @return {boolean} */ fileHasCreatePermission() { return !!(this.fileInfo.permissions & OC.PERMISSION_CREATE) @@ -611,7 +625,8 @@ export default { /** * Return the public share link - * @returns {string} + * + * @return {string} */ shareLink() { return window.location.protocol + '//' + window.location.host + generateUrl('/s/') + this.share.token @@ -619,7 +634,8 @@ export default { /** * Clipboard v-tooltip message - * @returns {string} + * + * @return {string} */ clipboardTooltip() { if (this.copied) { @@ -632,8 +648,9 @@ export default { /** * External additionnai actions for the menu + * * @deprecated use OCA.Sharing.ExternalShareActions - * @returns {Array} + * @return {Array} */ externalLegacyLinkActions() { return this.ExternalLegacyLinkActions.actions @@ -641,7 +658,8 @@ export default { /** * Additional actions for the menu - * @returns {Array} + * + * @return {Array} */ externalLinkActions() { // filter only the registered actions for said link @@ -794,6 +812,7 @@ export default { /** * On permissions change + * * @param {Event} event js event */ togglePermissions(event) { @@ -804,7 +823,8 @@ export default { /** * Label changed, let's save it to a different key - * @param {String} label the share label + * + * @param {string} label the share label */ onLabelChange(label) { this.$set(this.share, 'newLabel', label.trim()) @@ -846,6 +866,7 @@ export default { * If both co-exists, the password have changed and * we show it in plain text. * Then on submit (or menu close), we sync it. + * * @param {string} password the changed password */ onPasswordChange(password) { |