- Fixed Bulk download (draft downloads draft now)
- Enhanced empty country display in `CountryProperties.vue` with updated structure and styles. - Increased default page size in `Materials.vue` from 10 to 20 for better navigation.
This commit is contained in:
parent
8698031689
commit
13df95d32f
4 changed files with 25 additions and 12 deletions
|
|
@ -17,7 +17,8 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="country-edit-container">
|
||||
<collapsible-box v-if="selectedCountry" :is-collapsable="false" variant="border" :title="selectedCountry?.name ?? 'no country'">
|
||||
<collapsible-box v-if="selectedCountry" :is-collapsable="false" variant="border"
|
||||
:title="selectedCountry?.name ?? 'no country'">
|
||||
<div class="country-info-container">
|
||||
<box v-if="selectedCountry" class="country-info-box">
|
||||
<flag size="xl" :iso="selectedCountry.iso_code"></flag>
|
||||
|
|
@ -44,7 +45,13 @@
|
|||
</div>
|
||||
</collapsible-box>
|
||||
<div v-else>
|
||||
No country selected.
|
||||
<div class="empty-country">
|
||||
|
||||
<div class="empty-country-inner">
|
||||
No country selected.
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
@ -148,6 +155,19 @@ export default {
|
|||
|
||||
<style scoped>
|
||||
|
||||
.empty-country {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.empty-country-inner {
|
||||
margin: 1.6rem 2.4rem;
|
||||
color: #6B869C;
|
||||
font-size: 1.6rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.country-info-text {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
|
@ -209,6 +229,8 @@ export default {
|
|||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
min-height: 50rem;
|
||||
|
||||
}
|
||||
|
||||
.country-search-container {
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ export default {
|
|||
pageCount: 1,
|
||||
totalCount: 0
|
||||
},
|
||||
pageSize: 10
|
||||
pageSize: 20
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -18,11 +18,6 @@ export const useValidityPeriodStore = defineStore('validityPeriod', {
|
|||
if (state.periods === null)
|
||||
return null;
|
||||
|
||||
for (const period of state.periods) {
|
||||
if (period.state === "DRAFT")
|
||||
return period.id;
|
||||
}
|
||||
|
||||
for (const period of state.periods) {
|
||||
if (period.state === "VALID")
|
||||
return period.id;
|
||||
|
|
|
|||
|
|
@ -88,10 +88,6 @@ public class RateApprovalService {
|
|||
if (increase != null) {
|
||||
validityPeriodRepository.increaseRenewal(increase);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue