summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhamza mahjoubi <hamzamahjoubi221@gmail.com>2023-12-20 15:54:46 +0100
committerhamza mahjoubi <hamzamahjoubi221@gmail.com>2023-12-20 15:54:46 +0100
commitf9999aa32a9657f359228eb98e05507edc02f9a4 (patch)
tree20defcbe470b5ab00c9b0811d523a6cec690b562
parent6c77c1325ebc8c543e97bddc0c01f94110d65299 (diff)
Remove import contact button from chart view
Signed-off-by: hamza mahjoubi <hamzamahjoubi221@gmail.com>
-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 ?
*