Bläddra i källkod

Changed store register

master
Kobus 5 år sedan
förälder
incheckning
b59c8c5f89

+ 2
- 2
src/components/admin/status/agentsUserManagementPage.vue Visa fil

107
     return {};
107
     return {};
108
   },
108
   },
109
   methods: {
109
   methods: {
110
-    ...mapActions('registerIndividual', ['getAgents']),
110
+    ...mapActions('register', ['getAgents']),
111
     addNewAgent({ commit }) {
111
     addNewAgent({ commit }) {
112
       axios
112
       axios
113
         .post('/api/agent')
113
         .post('/api/agent')
122
     this.getAgents();
122
     this.getAgents();
123
   },
123
   },
124
   computed: {
124
   computed: {
125
-    ...mapState('registerIndividual', ['agents']),
125
+    ...mapState('register', ['agents']),
126
   },
126
   },
127
 };
127
 };
128
 </script>
128
 </script>

+ 2
- 2
src/components/admin/status/userManagementPage.vue Visa fil

99
     return {};
99
     return {};
100
   },
100
   },
101
   methods: {
101
   methods: {
102
-    ...mapActions('registerIndividual', ['getIndividuals']),
102
+    ...mapActions('register', ['getIndividuals']),
103
     routerGoTo(goTo) {
103
     routerGoTo(goTo) {
104
       this.$router.push(goTo);
104
       this.$router.push(goTo);
105
     },
105
     },
108
     this.getIndividuals();
108
     this.getIndividuals();
109
   },
109
   },
110
   computed: {
110
   computed: {
111
-    ...mapState('registerIndividual', ['individuals']),
111
+    ...mapState('register', ['individuals']),
112
   },
112
   },
113
 };
113
 };
114
 </script>
114
 </script>

+ 2
- 2
src/components/user/registerAgencySection.vue Visa fil

238
     };
238
     };
239
   },
239
   },
240
   computed: {
240
   computed: {
241
-    ...mapState('registerAgency', ['registerAgency']),
241
+    ...mapState('register', ['registerAgency']),
242
   },
242
   },
243
   methods: {
243
   methods: {
244
-    ...mapActions('registerAgency', [
244
+    ...mapActions('register', [
245
       'getAgency',
245
       'getAgency',
246
       'saveAgency',
246
       'saveAgency',
247
       'updateAgency',
247
       'updateAgency',

+ 2
- 2
src/components/user/registerPage.vue Visa fil

176
     };
176
     };
177
   },
177
   },
178
   computed: {
178
   computed: {
179
-    ...mapState('registerIndividual', ['registerIndividual']),
179
+    ...mapState('register', ['registerIndividual']),
180
 
180
 
181
     Header() {
181
     Header() {
182
       return this.RegisterHeader
182
       return this.RegisterHeader
185
     },
185
     },
186
   },
186
   },
187
   methods: {
187
   methods: {
188
-    ...mapActions('registerIndividual', [
188
+    ...mapActions('register', [
189
       'getIndividual',
189
       'getIndividual',
190
       'saveIndividual',
190
       'saveIndividual',
191
       'updateIndividual',
191
       'updateIndividual',

+ 2
- 2
src/components/user/updateProfileInfo.vue Visa fil

59
     return {};
59
     return {};
60
   },
60
   },
61
   methods: {
61
   methods: {
62
-    ...mapActions('registerIndividual', ['getIndividuals']),
62
+    ...mapActions('register', ['getIndividuals']),
63
   },
63
   },
64
   mounted() {
64
   mounted() {
65
     this.getIndividuals();
65
     this.getIndividuals();
66
   },
66
   },
67
   computed: {
67
   computed: {
68
-    ...mapState('registerIndividual', ['individuals']),
68
+    ...mapState('register', ['individuals']),
69
   },
69
   },
70
 };
70
 };
71
 </script>
71
 </script>

+ 1
- 2
src/store/index.js Visa fil

40
     propertyAdmin: PropertyAdminModule,
40
     propertyAdmin: PropertyAdminModule,
41
     propertyList: PropertyList,
41
     propertyList: PropertyList,
42
     propertyTypes: PropertyTypes,
42
     propertyTypes: PropertyTypes,
43
-    registerIndividual: Register,
44
-    registerAgency: Register,
43
+    register: Register,
45
     weekList: WeekList,
44
     weekList: WeekList,
46
     bid: Bid,
45
     bid: Bid,
47
     authentication: Authentication,
46
     authentication: Authentication,

Laddar…
Avbryt
Spara