Skip to content

Commit

Permalink
refactor(Proof card): hide by default the proof owner chip (#959)
Browse files Browse the repository at this point in the history
  • Loading branch information
raphodn authored Oct 16, 2024
1 parent e4ca52d commit 3cbef3f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/ProofFooterRow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<LocationChip class="mr-1" :location="proof.location" :locationId="proof.location_id" :readonly="readonly" :showErrorIfLocationMissing="true" />
<DateChip class="mr-1" :date="proof.date" :showErrorIfDateMissing="true" />
<CurrencyChip class="mr-1" :currency="proof.currency" :showErrorIfCurrencyMissing="true" />
<UserChip class="mr-1" :username="proof.owner" :readonly="readonly" />
<UserChip v-if="!hideProofOwner" class="mr-1" :username="proof.owner" :readonly="readonly" />
<RelativeDateTimeChip :dateTime="proof.created" />
</v-col>
</v-row>
Expand Down Expand Up @@ -35,6 +35,10 @@ export default {
type: Object,
default: null
},
hideProofOwner: {
type: Boolean,
default: true
},
hideProofActions: {
type: Boolean,
default: false,
Expand Down

0 comments on commit 3cbef3f

Please sign in to comment.