summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHamza <40746210+hamza221@users.noreply.github.com>2023-12-20 20:05:32 +0100
committerGitHub <noreply@github.com>2023-12-20 20:05:32 +0100
commitd88ea9afe8de456df3552e5478512852b6a68cdb (patch)
tree20defcbe470b5ab00c9b0811d523a6cec690b562
parent6c77c1325ebc8c543e97bddc0c01f94110d65299 (diff)
parentf9999aa32a9657f359228eb98e05507edc02f9a4 (diff)
Merge pull request #3751 from nextcloud/Fix/remove-import-contact
Remove import contact button from chart view
-rw-r--r--src/views/Contacts.vue5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/views/Contacts.vue b/src/views/Contacts.vue
index 52b9d2ea..9ec2c6a4 100644
--- a/src/views/Contacts.vue
+++ b/src/views/Contacts.vue
@@ -29,7 +29,7 @@
:selected-group="selectedGroup"
:selected-contact="selectedContact">
<div class="import-and-new-contact-buttons">
- <SettingsImportContacts v-if="!loadingContacts && isEmptyGroup" />
+ <SettingsImportContacts v-if="!loadingContacts && isEmptyGroup && !isChartView" />
<!-- new-contact-button -->
<Button v-if="!loadingContacts"
type="primary"
@@ -171,6 +171,9 @@ export default {
isEmptyGroup() {
return this.contactsList.length === 0
},
+ isChartView() {
+ return !!this.selectedChart
+ },
/**
* Are we importing contacts ?
*