Add getter to support cms.
This commit is contained in:
parent
1bb50e349e
commit
7aa9cb6e0c
1 changed files with 3 additions and 0 deletions
|
|
@ -528,6 +528,9 @@ export const getters = {
|
||||||
},
|
},
|
||||||
eventBus: (state) => state.applicationUser.eventBus,
|
eventBus: (state) => state.applicationUser.eventBus,
|
||||||
damage: (state) => state.order.damage,
|
damage: (state) => state.order.damage,
|
||||||
|
hasExactlyOneChip: (state) => {
|
||||||
|
return state.order.damage?.numberOfChips === 1;
|
||||||
|
},
|
||||||
hasAnyNonWindshieldGlassParts: (state) => {
|
hasAnyNonWindshieldGlassParts: (state) => {
|
||||||
const nonWindshieldItems = state.order.damage.glassToReplace?.filter(
|
const nonWindshieldItems = state.order.damage.glassToReplace?.filter(
|
||||||
(glassToReplace) => glassToReplace.glassLocation != "Windshield"
|
(glassToReplace) => glassToReplace.glassLocation != "Windshield"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue