Skip to content

Commit

Permalink
refactor(Contribution assistant): improve the label card delete & chi…
Browse files Browse the repository at this point in the history
…ps display
  • Loading branch information
raphodn committed Jan 26, 2025
1 parent 518d5a6 commit b87a5eb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions src/components/ContributionAssistantLabelList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,22 @@
<v-img style="height:150px" :src="label.imageSrc" />
</v-card-text>
<v-divider />
<v-card-text>
<v-chip class="mr-1" label size="small" density="comfortable">
{{ $t('Common.Source') }} {{ label.boundingSource }}
</v-chip>
<PriceCountChip v-if="labelHasPrice(label)" :count="1" :withLabel="true" source="proof" />
</v-card-text>
<v-divider v-if="!labelHasPrice(label)" />
<v-card-actions v-if="!labelHasPrice(label)">
<v-card-actions>
<v-btn v-if="!$vuetify.display.smAndUp && !labelHasPrice(label)" color="error" variant="outlined" icon="mdi-delete" size="small" density="comfortable" :aria-label="$t('Common.Delete')" @click="removeLabel(index)" />
<v-btn
v-else-if="!labelHasPrice(label)"
color="error"
variant="outlined"
prepend-icon="mdi-delete"
size="small"
@click="removeLabel(index)"
>
{{ $t('Common.Delete') }}
</v-btn>
<v-chip class="mr-1" label size="small" density="comfortable" prepend-icon="mdi-information-outline">
{{ label.boundingSource }}
</v-chip>
<PriceCountChip v-if="labelHasPrice(label)" :count="1" :withLabel="true" source="proof" />
</v-card-actions>
</v-card>
</v-col>
Expand Down
2 changes: 1 addition & 1 deletion src/components/ProofImageInputRow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
</v-card-text>
<v-divider />
<v-card-actions>
<v-btn v-if="!$vuetify.display.smAndUp" color="error" variant="outlined" icon="mdi-delete" size="small" density="comfortable" :aria-label="$t('Common.Search')" @click="removeImage(index)" />
<v-btn v-if="!$vuetify.display.smAndUp" color="error" variant="outlined" icon="mdi-delete" size="small" density="comfortable" :aria-label="$t('Common.Delete')" @click="removeImage(index)" />
<v-btn
v-else
color="error"
Expand Down

0 comments on commit b87a5eb

Please sign in to comment.