diff options
author | dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> | 2019-12-08 10:22:10 +0000 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2019-12-08 17:48:12 +0100 |
commit | 213a1fc421da26a9d3852721aaf1cd3fbdc7b162 (patch) | |
tree | 3c036c4d500cc40c3eb2bbbf89943e15f6a5d24f /src/components/Settings | |
parent | 544cc04f1608e8c0555cde50dbccd6e0e964589b (diff) |
Bump eslint-config-nextcloud from 0.0.6 to 0.1.0
Bumps [eslint-config-nextcloud](https://github.com/nextcloud/eslint-config-nextcloud) from 0.0.6 to 0.1.0.
- [Release notes](https://github.com/nextcloud/eslint-config-nextcloud/releases)
- [Commits](https://github.com/nextcloud/eslint-config-nextcloud/compare/v0.0.6...v0.1.0)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Diffstat (limited to 'src/components/Settings')
-rw-r--r-- | src/components/Settings/SettingsAddressbook.vue | 22 | ||||
-rw-r--r-- | src/components/Settings/SettingsAddressbookShare.vue | 20 | ||||
-rw-r--r-- | src/components/Settings/SettingsAddressbookSharee.vue | 18 | ||||
-rw-r--r-- | src/components/Settings/SettingsImportContacts.vue | 20 | ||||
-rw-r--r-- | src/components/Settings/SettingsNewAddressbook.vue | 4 | ||||
-rw-r--r-- | src/components/Settings/SettingsSortContacts.vue | 16 |
6 files changed, 50 insertions, 50 deletions
diff --git a/src/components/Settings/SettingsAddressbook.vue b/src/components/Settings/SettingsAddressbook.vue index b136aed8..61fd301c 100644 --- a/src/components/Settings/SettingsAddressbook.vue +++ b/src/components/Settings/SettingsAddressbook.vue @@ -104,7 +104,7 @@ export default { ActionLink, ActionButton, ActionInput, - ActionCheckbox + ActionCheckbox, }, props: { @@ -112,8 +112,8 @@ export default { type: Object, default() { return {} - } - } + }, + }, }, data() { return { @@ -125,7 +125,7 @@ export default { menuOpen: false, renameLoading: false, shareOpen: false, - toggleEnabledLoading: false + toggleEnabledLoading: false, } }, computed: { @@ -148,7 +148,7 @@ export default { 'Shared with {num} entity', 'Shared with {num} entities', this.addressbook.shares.length, { - num: this.addressbook.shares.length + num: this.addressbook.shares.length, }) : '' // disable the tooltip }, @@ -159,14 +159,14 @@ export default { : t('contacts', 'Can not copy') } return t('contacts', 'Copy link') - } + }, }, watch: { menuOpen: function() { if (this.menuOpen === false) { this.editingName = false } - } + }, }, mounted() { // required if popup needs to stay opened after menu click @@ -226,9 +226,9 @@ export default { this.editingName = true }, async updateAddressbookName(e) { - let addressbook = this.addressbook + const addressbook = this.addressbook // New name for addressbook - inputed value from form - let newName = this.$refs.renameInput.$el.querySelector('input[type="text"]').value + const newName = this.$refs.renameInput.$el.querySelector('input[type="text"]').value // change to loading status this.renameLoading = true try { @@ -268,7 +268,7 @@ export default { this.copySuccess = false }, 2000) } - } - } + }, + }, } </script> diff --git a/src/components/Settings/SettingsAddressbookShare.vue b/src/components/Settings/SettingsAddressbookShare.vue index ef5cd9aa..632aabb2 100644 --- a/src/components/Settings/SettingsAddressbookShare.vue +++ b/src/components/Settings/SettingsAddressbookShare.vue @@ -56,21 +56,21 @@ import debounce from 'debounce' export default { name: 'SettingsAddressbookShare', components: { - addressBookSharee + addressBookSharee, }, props: { addressbook: { type: Object, default() { return {} - } - } + }, + }, }, data() { return { isLoading: false, inputGiven: false, - usersOrGroups: [] + usersOrGroups: [], } }, computed: { @@ -79,7 +79,7 @@ export default { }, noResult() { return t('contacts', 'No users or groups') - } + }, }, mounted() { // This ensures that the multiselect input is in focus as soon as the user clicks share @@ -96,7 +96,7 @@ export default { * @param {boolean} data.isGroup is this a group ? */ shareAddressbook({ user, displayName, uri, isGroup }) { - let addressbook = this.addressbook + const addressbook = this.addressbook uri = decodeURI(uri) user = decodeURI(user) this.$store.dispatch('shareAddressbook', { addressbook, user, displayName, uri, isGroup }) @@ -113,14 +113,14 @@ export default { if (query.length > 0) { const results = await client.principalPropertySearchByDisplayname(query) this.usersOrGroups = results.reduce((list, result) => { - if (['GROUP', 'INDIVIDUAL'].indexOf(result.calendarUserType) > -1) { + if (['GROUP', 'INDIVIDUAL'].indexOf(result.calendarUserType) > -1) { const isGroup = result.calendarUserType === 'GROUP' list.push({ user: result[isGroup ? 'groupId' : 'userId'], displayName: result.displayname, icon: isGroup ? 'icon-group' : 'icon-user', uri: result.principalScheme, - isGroup + isGroup, }) } return list @@ -131,7 +131,7 @@ export default { this.inputGiven = false this.isLoading = false } - }, 500) - } + }, 500), + }, } </script> diff --git a/src/components/Settings/SettingsAddressbookSharee.vue b/src/components/Settings/SettingsAddressbookSharee.vue index 350aaa0b..ddb43a37 100644 --- a/src/components/Settings/SettingsAddressbookSharee.vue +++ b/src/components/Settings/SettingsAddressbookSharee.vue @@ -60,17 +60,17 @@ export default { props: { addressbook: { type: Object, - required: true + required: true, }, sharee: { type: Object, - required: true - } + required: true, + }, }, data() { return { - loading: false + loading: false, } }, @@ -81,7 +81,7 @@ export default { // generated id for this sharee uid() { return this.sharee.id + this.addressbook.id + Math.floor(Math.random() * 1000) - } + }, }, methods: { @@ -94,7 +94,7 @@ export default { try { await this.$store.dispatch('removeSharee', { addressbook: this.addressbook, - uri: this.sharee.uri + uri: this.sharee.uri, }) } catch (error) { console.error(error) @@ -113,7 +113,7 @@ export default { await this.$store.dispatch('toggleShareeWritable', { addressbook: this.addressbook, uri: this.sharee.uri, - writeable: !this.sharee.writeable + writeable: !this.sharee.writeable, }) } catch (error) { console.error(error) @@ -121,7 +121,7 @@ export default { } finally { this.loading = false } - } - } + }, + }, } </script> diff --git a/src/components/Settings/SettingsImportContacts.vue b/src/components/Settings/SettingsImportContacts.vue index 9f2c13d0..d7583a3a 100644 --- a/src/components/Settings/SettingsImportContacts.vue +++ b/src/components/Settings/SettingsImportContacts.vue @@ -54,7 +54,7 @@ export default { data() { return { - importDestination: false + importDestination: false, } }, @@ -75,7 +75,7 @@ export default { .map(addressbook => { return { id: addressbook.id, - displayName: addressbook.displayName + displayName: addressbook.displayName, } }) }, @@ -89,7 +89,7 @@ export default { }, set(value) { this.importDestination = value - } + }, }, // disable multiselect when there is only one address book @@ -107,23 +107,23 @@ export default { // are we currently importing ? isImporting() { return this.importState.stage !== 'default' - } + }, }, methods: { processFile(event) { - let file = event.target.files[0] - let reader = new FileReader() - let selectedAddressbook = this.selectedAddressbook + const file = event.target.files[0] + const reader = new FileReader() + const selectedAddressbook = this.selectedAddressbook this.$store.dispatch('changeStage', 'parsing') this.$store.dispatch('setAddressbook', selectedAddressbook.displayName) - let self = this + const self = this reader.onload = function(e) { self.$store.dispatch('importContactsIntoAddressbook', { vcf: reader.result, addressbook: selectedAddressbook }) // reset input event.target.value = '' } reader.readAsText(file) - } - } + }, + }, } </script> diff --git a/src/components/Settings/SettingsNewAddressbook.vue b/src/components/Settings/SettingsNewAddressbook.vue index b8e338b9..3f2abbb5 100644 --- a/src/components/Settings/SettingsNewAddressbook.vue +++ b/src/components/Settings/SettingsNewAddressbook.vue @@ -74,7 +74,7 @@ export default { OC.Notification.showTemporary(t('contacts', 'An error occurred, unable to create the addressbook.')) this.loading = false }) - } - } + }, + }, } </script> diff --git a/src/components/Settings/SettingsSortContacts.vue b/src/components/Settings/SettingsSortContacts.vue index 0ae3de2b..7bf0644f 100644 --- a/src/components/Settings/SettingsSortContacts.vue +++ b/src/components/Settings/SettingsSortContacts.vue @@ -46,20 +46,20 @@ export default { return [ { label: t('contacts', 'First name'), - key: 'firstName' + key: 'firstName', }, { label: t('contacts', 'Last name'), - key: 'lastName' + key: 'lastName', }, { label: t('contacts', 'Display name'), - key: 'displayName' + key: 'displayName', }, { label: t('contacts', 'Last modified'), - key: 'rev' - } + key: 'rev', + }, ] }, /* Current order Key */ @@ -68,7 +68,7 @@ export default { }, orderKeyOption() { return this.options.filter(option => option.key === this.orderKey)[0] - } + }, }, methods: { sortContacts(orderKey) { @@ -79,7 +79,7 @@ export default { }, formatSortByLabel(option) { return t('contacts', 'Sort by {sorting}', { sorting: option.label }) - } - } + }, + }, } </script> |