Skip to content

Commit

Permalink
fix(ux): Customer image button and labels (#1360)
Browse files Browse the repository at this point in the history
  • Loading branch information
michellealva authored Jul 26, 2023
1 parent 4a4f346 commit 57f5634
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions desk/src/pages/desk/customer/CustomerDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,17 @@
<FileUploader @success="(file) => updateImage(file)">
<template #default="{ uploading, openFileSelector }">
<Button
label="Change photo"
:label="customer.doc?.image ? 'Change photo' : 'Upload photo'"
:loading="uploading"
@click="openFileSelector"
/>
</template>
</FileUploader>
<Button label="Remove photo" @click="updateImage(null)" />
<Button
v-if="customer.doc?.image"
label="Remove photo"
@click="updateImage(null)"
/>
</div>
<form class="w-full" @submit.prevent="update">
<Input v-model="domain" label="Domain" placeholder="example.com" />
Expand Down

0 comments on commit 57f5634

Please sign in to comment.