30 lines
633 B
TypeScript
30 lines
633 B
TypeScript
import PolicyStore from './policy';
|
||
import type RootStore from '@/stores/root';
|
||
|
||
export default class ELTStore {
|
||
public kasko: PolicyStore;
|
||
public osago: PolicyStore;
|
||
|
||
constructor(rootStore: RootStore) {
|
||
this.kasko = new PolicyStore({
|
||
rootStore,
|
||
validationConfig: {
|
||
err_key: 'ERR_ELT_KASKO',
|
||
err_title: 'ЭЛТ КАСКО',
|
||
},
|
||
});
|
||
this.osago = new PolicyStore({
|
||
rootStore,
|
||
validationConfig: {
|
||
err_key: 'ERR_ELT_OSAGO',
|
||
err_title: 'ЭЛТ ОСАГО',
|
||
},
|
||
});
|
||
}
|
||
|
||
public reset = () => {
|
||
this.kasko.reset();
|
||
this.osago.reset();
|
||
};
|
||
}
|