Skip to content

Commit

Permalink
fix: run lint:fix
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Klehr <[email protected]>
  • Loading branch information
marcelklehr committed Nov 11, 2024
1 parent 287e5d7 commit f770f02
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 24 deletions.
8 changes: 4 additions & 4 deletions src/components/AdminSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ import axios from '@nextcloud/axios'
import { delay } from '../utils.js'
import { showSuccess, showError } from '@nextcloud/dialogs'
import NcCheckboxRadioSwitch from '@nextcloud/vue/dist/Components/NcCheckboxRadioSwitch.js'
import {confirmPassword} from '@nextcloud/password-confirmation'
import { confirmPassword } from '@nextcloud/password-confirmation'
export default {
name: 'AdminSettings',
Expand Down Expand Up @@ -106,8 +106,8 @@ export default {
},
onInput() {
const that = this
delay(async() => {
await confirmPassword()
delay(async () => {
await confirmPassword()
that.saveOptions({
client_id: this.state.client_id,
client_secret: this.state.client_secret,
Expand All @@ -126,7 +126,7 @@ export default {
.catch((error) => {
showError(
t('integration_google', 'Failed to save Google admin options')
+ ': ' + error.response.request.responseText
+ ': ' + error.response.request.responseText,
)
})
.then(() => {
Expand Down
40 changes: 20 additions & 20 deletions src/components/PersonalSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ export default {
.catch((error) => {
showError(
t('integration_google', 'Failed to save Google options')
+ ': ' + error.response?.request?.responseText
+ ': ' + error.response?.request?.responseText,
)
})
.then(() => {
Expand Down Expand Up @@ -486,7 +486,7 @@ export default {
const ssoWindow = window.open(
requestUrl,
t('integration_google', 'Sign in with Google'),
'toolbar=no, menubar=no, width=600, height=700'
'toolbar=no, menubar=no, width=600, height=700',
)
ssoWindow.focus()
window.addEventListener('message', (event) => {
Expand All @@ -500,7 +500,7 @@ export default {
}).catch((error) => {
showError(
t('integration_google', 'Failed to save Google OAuth state')
+ ': ' + error.response?.request?.responseText
+ ': ' + error.response?.request?.responseText,
)
})
},
Expand All @@ -517,7 +517,7 @@ export default {
.catch((error) => {
showError(
t('integration_google', 'Failed to get Google Drive information')
+ ': ' + error.response?.request?.responseText
+ ': ' + error.response?.request?.responseText,
)
})
.then(() => {
Expand All @@ -535,7 +535,7 @@ export default {
.catch((error) => {
showError(
t('integration_google', 'Failed to get calendar list')
+ ': ' + error.response?.request?.responseText
+ ': ' + error.response?.request?.responseText,
)
})
.then(() => {
Expand Down Expand Up @@ -583,7 +583,7 @@ export default {
.catch((error) => {
showError(
t('integration_google', 'Failed to get number of Google photos')
+ ': ' + error.response?.request?.responseText
+ ': ' + error.response?.request?.responseText,
)
})
.then(() => {
Expand All @@ -601,7 +601,7 @@ export default {
.catch((error) => {
showError(
t('integration_google', 'Failed to get number of Google contacts')
+ ': ' + error.response?.request?.responseText
+ ': ' + error.response?.request?.responseText,
)
})
.then(() => {
Expand All @@ -618,7 +618,7 @@ export default {
.catch((error) => {
showError(
t('integration_google', 'Failed to get address book list')
+ ': ' + error.response?.request?.responseText
+ ': ' + error.response?.request?.responseText,
)
})
.then(() => {
Expand Down Expand Up @@ -649,15 +649,15 @@ export default {
'{nbSeen} Google contact seen. {nbAdded} added, {nbUpdated} updated in {name}',
'{nbSeen} Google contacts seen. {nbAdded} added, {nbUpdated} updated in {name}',
nbSeen,
{ nbAdded, nbSeen, nbUpdated, name: this.selectedAddressBookName }
)
{ nbAdded, nbSeen, nbUpdated, name: this.selectedAddressBookName },
),
)
this.showAddressBooks = false
})
.catch((error) => {
showError(
t('integration_google', 'Failed to get address book list')
+ ': ' + error.response?.request?.responseText
+ ': ' + error.response?.request?.responseText,
)
})
.then(() => {
Expand Down Expand Up @@ -687,14 +687,14 @@ export default {
'{total} event successfully imported in {name} ({nbAdded} created, {nbUpdated} updated)',
'{total} events successfully imported in {name} ({nbAdded} created, {nbUpdated} updated)',
total,
{ total, nbAdded, nbUpdated, name: calName }
)
{ total, nbAdded, nbUpdated, name: calName },
),
)
})
.catch((error) => {
showError(
t('integration_google', 'Failed to import Google calendar')
+ ': ' + error.response?.request?.responseText
+ ': ' + error.response?.request?.responseText,
)
})
.then(() => {
Expand All @@ -711,14 +711,14 @@ export default {
.then((response) => {
const targetPath = response.data.targetPath
showSuccess(
t('integration_google', 'Starting importing photos in {targetPath} directory', { targetPath })
t('integration_google', 'Starting importing photos in {targetPath} directory', { targetPath }),
)
this.getPhotoImportValues(true)
})
.catch((error) => {
showError(
t('integration_google', 'Failed to start importing Google photos')
+ ': ' + error.response?.request?.responseText
+ ': ' + error.response?.request?.responseText,
)
})
.then(() => {
Expand Down Expand Up @@ -777,14 +777,14 @@ export default {
.then((response) => {
const targetPath = response.data.targetPath
showSuccess(
t('integration_google', 'Starting importing files in {targetPath} directory', { targetPath })
t('integration_google', 'Starting importing files in {targetPath} directory', { targetPath }),
)
this.getDriveImportValues(true)
})
.catch((error) => {
showError(
t('integration_google', 'Failed to start importing Google Drive')
+ ': ' + error.response?.request?.responseText
+ ': ' + error.response?.request?.responseText,
)
})
.then(() => {
Expand Down Expand Up @@ -841,7 +841,7 @@ export default {
},
false,
'httpd/unix-directory',
true
true,
)
},
onPhotoOutputChange() {
Expand All @@ -856,7 +856,7 @@ export default {
},
false,
'httpd/unix-directory',
true
true,
)
},
},
Expand Down

0 comments on commit f770f02

Please sign in to comment.