2023-05-12 11:34:09 +03:00

30 lines
633 B
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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();
};
}