Skip to content

Commit 40d0ce5

Browse files
committed
fix: display of buttons on contacts page
1 parent 226ef3b commit 40d0ce5

1 file changed

Lines changed: 18 additions & 15 deletions

File tree

web/app/pages/contacts/index.vue

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,6 @@ const searchTerm = computed({
102102
},
103103
})
104104
105-
const trimmedSearchTerm = computed(() => contactsStore.search.trim())
106-
107105
const dialogTitle = computed(() =>
108106
editingId.value ? 'Edit Contact' : 'Add Contact',
109107
)
@@ -371,28 +369,20 @@ onBeforeUnmount(() => {
371369
<VContainer class="pt-0">
372370
<VRow>
373371
<VCol cols="12">
374-
<div class="d-flex flex-column flex-md-row align-md-center mb-6 mt-3">
375-
<div>
376-
<h1 class="text-display-large mb-1">Contacts</h1>
377-
<p class="text-medium-emphasis mb-0">
378-
Manage your contacts.
379-
{{
380-
trimmedSearchTerm
381-
? `${contactsStore.total} found`
382-
: `${contactsStore.total} total`
383-
}}
384-
</p>
385-
</div>
372+
<div class="d-flex align-center">
373+
<h1 class="text-display-large mb-1">Contacts</h1>
386374
<VSpacer />
387-
<div class="d-flex flex-column flex-sm-row ga-3 mt-4 mt-md-0">
375+
<div class="mt-12">
388376
<VBtn
389377
variant="tonal"
378+
class="ml-4 mb-4"
390379
:prepend-icon="mdiFileUpload"
391380
@click="openImport"
392381
>
393382
Import CSV
394383
</VBtn>
395384
<VBtn
385+
class="ml-4 mb-4"
396386
color="primary"
397387
variant="flat"
398388
:prepend-icon="mdiAccountPlus"
@@ -402,6 +392,19 @@ onBeforeUnmount(() => {
402392
</VBtn>
403393
</div>
404394
</div>
395+
<p class="text-medium-emphasis mb-6">
396+
Use httpSMS as a lightweight CRM by adding your contacts here. Your
397+
message threads will show contact names instead of phone numbers,
398+
making conversations easier to recognize and manage. Add contacts
399+
individually, or fill in our
400+
<a
401+
class="text-decoration-none hover:text-decoration-underline"
402+
href="/templates/httpsms-contacts.csv"
403+
download
404+
>CSV template</a
405+
>
406+
and upload it to import your contact list in bulk.
407+
</p>
405408

406409
<VTextField
407410
v-model="searchTerm"

0 commit comments

Comments
 (0)