Skip to content

Commit

Permalink
Remove import contact button from chart view
Browse files Browse the repository at this point in the history
Signed-off-by: hamza mahjoubi <[email protected]>
  • Loading branch information
hamza221 committed Dec 20, 2023
1 parent 6c77c13 commit f9999aa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/views/Contacts.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -171,6 +171,9 @@ export default {
isEmptyGroup() {
return this.contactsList.length === 0
},
isChartView() {
return !!this.selectedChart
},

Check warning on line 176 in src/views/Contacts.vue

View check run for this annotation

Codecov / codecov/patch

src/views/Contacts.vue#L175-L176

Added lines #L175 - L176 were not covered by tests
/**
* Are we importing contacts ?
*
Expand Down

0 comments on commit f9999aa

Please sign in to comment.