Skip to content

Commit

Permalink
refactor: rename PriceFooter to PriceFooterRow
Browse files Browse the repository at this point in the history
  • Loading branch information
raphodn committed Apr 12, 2024
1 parent f86c2a0 commit c6ed008
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions src/components/PriceCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
</v-col>
</v-row>

<PriceFooter v-if="price && !hidePriceFooter" :price="price" :hidePriceLocation="hidePriceLocation" :hidePriceProof="hidePriceProof" :readonly="readonly"></PriceFooter>
<PriceFooterRow v-if="price && !hidePriceFooterRow" :price="price" :hidePriceLocation="hidePriceLocation" :hidePriceProof="hidePriceProof" :readonly="readonly"></PriceFooterRow>
</v-container>
</v-card>
</template>
Expand All @@ -44,7 +44,7 @@ export default {
'PriceOrigins': defineAsyncComponent(() => import('../components/PriceOrigins.vue')),
'PriceLabels': defineAsyncComponent(() => import('../components/PriceLabels.vue')),
'PricePrice': defineAsyncComponent(() => import('../components/PricePrice.vue')),
'PriceFooter': defineAsyncComponent(() => import('../components/PriceFooter.vue'))
'PriceFooterRow': defineAsyncComponent(() => import('../components/PriceFooterRow.vue'))
},
props: {
'price': null,
Expand All @@ -53,7 +53,7 @@ export default {
'hideProductTitle': false,
'hideProductDetails': false,
'hidePriceDate': false,
'hidePriceFooter': false,
'hidePriceFooterRow': false,
'hidePriceLocation': false,
'hidePriceProof': false,
'readonly': false
Expand Down
2 changes: 1 addition & 1 deletion src/components/PriceDeleteConfirmationDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<p class="mb-1">{{ $t('PriceDelete.Confirmation') }}</p>
<v-row>
<v-col cols="12" md="6">
<PriceCard :price="price" :product="price.product" :hidePriceFooter="true" :readonly="true"></PriceCard>
<PriceCard :price="price" :product="price.product" :hidePriceFooterRow="true" :readonly="true"></PriceCard>
</v-col>
</v-row>
</v-card-text>
Expand Down
2 changes: 1 addition & 1 deletion src/components/PriceEditDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<v-card-text>
<v-row>
<v-col cols="12" md="6">
<PriceCard :price="price" :product="price.product" :hidePriceFooter="true" :readonly="true"></PriceCard>
<PriceCard :price="price" :product="price.product" :hidePriceFooterRow="true" :readonly="true"></PriceCard>
</v-col>
</v-row>
</v-card-text>
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions src/components/ProductCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<v-divider class="mt-2 mb-2"></v-divider>
<h4>{{ $t('ProductCard.LatestPrice') }}</h4>
<PricePrice :price="latestPrice" :productQuantity="product.product_quantity" :productQuantityUnit="product.product_quantity_unit"></PricePrice>
<PriceFooter :price="latestPrice"></PriceFooter>
<PriceFooterRow :price="latestPrice"></PriceFooterRow>
</v-sheet>
</v-container>
</v-card>
Expand All @@ -47,7 +47,7 @@ export default {
'ProductLabelsChip': defineAsyncComponent(() => import('../components/ProductLabelsChip.vue')),
'ProductMissingChip': defineAsyncComponent(() => import('../components/ProductMissingChip.vue')),
'PricePrice': defineAsyncComponent(() => import('../components/PricePrice.vue')),
'PriceFooter': defineAsyncComponent(() => import('../components/PriceFooter.vue')),
'PriceFooterRow': defineAsyncComponent(() => import('../components/PriceFooterRow.vue')),
},
props: {
'product': null,
Expand Down
2 changes: 1 addition & 1 deletion src/views/AddPriceMultiple.vue
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
<v-card-text>
<v-row>
<v-col v-for="(productPriceUploaded, index) in productPriceUploadedList" cols="12" :key="productPriceUploaded">
<PriceCard :price="productPriceUploaded" :product="productPriceUploaded.product" :hidePriceDate="true" :hidePriceFooter="true" :readonly="true"></PriceCard>
<PriceCard :price="productPriceUploaded" :product="productPriceUploaded.product" :hidePriceDate="true" :hidePriceFooterRow="true" :readonly="true"></PriceCard>
</v-col>
</v-row>
</v-card-text>
Expand Down

0 comments on commit c6ed008

Please sign in to comment.