summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJessica <jessica@Absolventas-MacBook-Pro.local>2018-09-25 17:33:13 +0200
committerJessica <jessica@Absolventas-MacBook-Pro.local>2018-09-25 17:33:13 +0200
commit982121ac9179b6959613c6d72acfbf17642b616c (patch)
tree1f9270ef9fa593c85e77cfc78acd2eaad630de1a /src
parent7fd5acd7f9a7408e66429cc227fe4f78a2c0d820 (diff)
removed timeout from delete addressbook, updated notifications
Diffstat (limited to 'src')
-rw-r--r--src/components/Settings/SettingsAddressbook.vue15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/components/Settings/SettingsAddressbook.vue b/src/components/Settings/SettingsAddressbook.vue
index 5d005bc2..b592b98c 100644
--- a/src/components/Settings/SettingsAddressbook.vue
+++ b/src/components/Settings/SettingsAddressbook.vue
@@ -81,7 +81,6 @@ export default {
toggleEnabledLoading: false,
deleteAddressbookLoading: false,
renameLoading: false,
- downloadLoading: false,
copyLoading: false
}
},
@@ -104,7 +103,7 @@ export default {
},
{
href: this.addressbook.url + '?export',
- icon: this.downloadLoading ? 'icon-loading-small' : 'icon-download',
+ icon: 'icon-download',
text: t('contacts', 'Download'),
action: this.downloadAddressbook
}
@@ -180,12 +179,8 @@ export default {
}, 500)
},
downloadAddressbook() {
- // change to loading status
- this.downloadLoading = true
- setTimeout(() => {
- // stop loading status regardless of outcome
- this.downloadLoading = false
- }, 1500)
+ // Notify download started
+ OC.Notification.showTemporary(t('contacts', 'Downloading Addressbook'))
},
deleteAddressbook() {
// change to loading status
@@ -239,10 +234,12 @@ export default {
event.preventDefault()
this.copySuccess = true
this.copied = true
+ // Notify addressbook was copied
+ OC.Notification.showTemporary(t('contacts', 'Addressbook copied to clipboard'))
}, e => {
this.copySuccess = false
this.copied = true
- OC.Notification.showTemporary(t('contacts', 'Copy was not successful, manual copy necessary.'))
+ OC.Notification.showTemporary(t('contacts', 'Addressbook was not copied to clipboard.'))
}).then(() => {
// stop loading status regardless of outcome
this.copyLoading = false