diff options
author | hamza mahjoubi <hamzamahjoubi221@gmail.com> | 2023-12-20 15:54:46 +0100 |
---|---|---|
committer | hamza mahjoubi <hamzamahjoubi221@gmail.com> | 2023-12-20 15:54:46 +0100 |
commit | f9999aa32a9657f359228eb98e05507edc02f9a4 (patch) | |
tree | 20defcbe470b5ab00c9b0811d523a6cec690b562 | |
parent | 6c77c1325ebc8c543e97bddc0c01f94110d65299 (diff) |
Remove import contact button from chart view
Signed-off-by: hamza mahjoubi <hamzamahjoubi221@gmail.com>
-rw-r--r-- | src/views/Contacts.vue | 5 |
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 ? * |