Skip to content

Commit

Permalink
Fix eslint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksei-nmc committed Mar 21, 2024
1 parent 07313e3 commit 4a35ac5
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 11 deletions.
6 changes: 3 additions & 3 deletions src/components/AddLinkButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ export default {
})
showSuccess(t('files_sharing', 'Link share created'))
this.sendUtagInfo({
wt_link_id: "button.add-link-share",
page_content_id: "files.sharing",
page_type: "files"
wt_link_id: 'button.add-link-share',
page_content_id: 'files.sharing',
page_type: 'files',
})
} catch (data) {
Expand Down
4 changes: 3 additions & 1 deletion src/mixins/SharesMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
*
*/

/* global utag */

import { showError, showSuccess } from '@nextcloud/dialogs'
import { getCurrentUser } from '@nextcloud/auth'
// eslint-disable-next-line import/no-unresolved, n/no-missing-import
Expand Down Expand Up @@ -379,6 +381,6 @@ export default {
sendUtagInfo: (data) => {
if (typeof utag === 'undefined' || !utag.view()) return
utag.view(data)
}
},
},
}
2 changes: 1 addition & 1 deletion src/utils/CollaboraMimeTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ export const COLLABORA_MIME_TYPES = [
'application/vnd.oasis.opendocument.graphics',
'application/vnd.visio',
'text/plain',
'text/markdown'
'text/markdown',
]
12 changes: 6 additions & 6 deletions src/views/SharingDetailsTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -661,16 +661,16 @@ export default {
this.share = share
this.$emit('add:share', this.share)
this.sendUtagInfo({
wt_link_id: "button.create-share",
page_content_id: "files.sharing",
page_type: "files"
wt_link_id: 'button.create-share',
page_content_id: 'files.sharing',
page_type: 'files',
})
} else {
this.queueUpdate(...permissionsAndAttributes)
this.sendUtagInfo({
wt_link_id: "button.update-share",
page_content_id: "files.sharing",
page_type: "files"
wt_link_id: 'button.update-share',
page_content_id: 'files.sharing',
page_type: 'files',
})
}
Expand Down

0 comments on commit 4a35ac5

Please sign in to comment.