@@ -93,22 +93,16 @@ export default {
9393 }).then (response => {
9494 this .$pollJob ({
9595 jobId: response .dedicatezoneresponse .jobid ,
96- successMessage: this .$t (' label.zone.dedicated' ),
96+ title: this .$t (' label.dedicate.zone' ),
97+ description: ` ${ this .$t (' label.domain.id' )} : ${ this .domainId } ` ,
98+ successMessage: ` ${ this .$t (' label.zone.dedicated' )} ` ,
9799 successMethod : () => {
98- this .parentFetchData ()
99100 this .fetchParentData ()
100101 this .dedicatedDomainId = this .domainId
101102 this .dedicatedDomainModal = false
102- this .$store .dispatch (' AddAsyncJob' , {
103- title: this .$t (' label.zone.dedicated' ),
104- jobid: response .dedicatezoneresponse .jobid ,
105- description: ` ${ this .$t (' label.domain.id' )} : ${ this .dedicatedDomainId } ` ,
106- status: ' progress'
107- })
108103 },
109104 errorMessage: this .$t (' error.dedicate.zone.failed' ),
110105 errorMethod : () => {
111- this .parentFetchData ()
112106 this .fetchParentData ()
113107 this .dedicatedDomainModal = false
114108 },
@@ -137,22 +131,16 @@ export default {
137131 }).then (response => {
138132 this .$pollJob ({
139133 jobId: response .dedicatepodresponse .jobid ,
134+ title: this .$t (' label.dedicate.pod' ),
135+ description: ` ${ this .$t (' label.domain.id' )} : ${ this .domainId } ` ,
140136 successMessage: this .$t (' label.pod.dedicated' ),
141137 successMethod : () => {
142- this .parentFetchData ()
143138 this .fetchParentData ()
144139 this .dedicatedDomainId = this .domainId
145140 this .dedicatedDomainModal = false
146- this .$store .dispatch (' AddAsyncJob' , {
147- title: this .$t (' label.pod.dedicated' ),
148- jobid: response .dedicatepodresponse .jobid ,
149- description: ` ${ this .$t (' label.domainid' )} : ${ this .dedicatedDomainId } ` ,
150- status: ' progress'
151- })
152141 },
153142 errorMessage: this .$t (' error.dedicate.pod.failed' ),
154143 errorMethod : () => {
155- this .parentFetchData ()
156144 this .fetchParentData ()
157145 this .dedicatedDomainModal = false
158146 },
@@ -181,22 +169,16 @@ export default {
181169 }).then (response => {
182170 this .$pollJob ({
183171 jobId: response .dedicateclusterresponse .jobid ,
172+ title: this .$t (' label.dedicate.cluster' ),
173+ description: ` ${ this .$t (' label.domain.id' )} : ${ this .domainId } ` ,
184174 successMessage: this .$t (' message.cluster.dedicated' ),
185175 successMethod : () => {
186- this .parentFetchData ()
187176 this .fetchParentData ()
188177 this .dedicatedDomainId = this .domainId
189178 this .dedicatedDomainModal = false
190- this .$store .dispatch (' AddAsyncJob' , {
191- title: this .$t (' message.cluster.dedicated' ),
192- jobid: response .dedicateclusterresponse .jobid ,
193- description: ` ${ this .$t (' label.domainid' )} : ${ this .dedicatedDomainId } ` ,
194- status: ' progress'
195- })
196179 },
197180 errorMessage: this .$t (' error.dedicate.cluster.failed' ),
198181 errorMethod : () => {
199- this .parentFetchData ()
200182 this .fetchParentData ()
201183 this .dedicatedDomainModal = false
202184 },
@@ -225,22 +207,16 @@ export default {
225207 }).then (response => {
226208 this .$pollJob ({
227209 jobId: response .dedicatehostresponse .jobid ,
210+ title: this .$t (' label.dedicate.host' ),
211+ description: ` ${ this .$t (' label.domain.id' )} : ${ this .domainId } ` ,
228212 successMessage: this .$t (' message.host.dedicated' ),
229213 successMethod : () => {
230- this .parentFetchData ()
231214 this .fetchParentData ()
232215 this .dedicatedDomainId = this .domainId
233216 this .dedicatedDomainModal = false
234- this .$store .dispatch (' AddAsyncJob' , {
235- title: this .$t (' message.host.dedicated' ),
236- jobid: response .dedicatehostresponse .jobid ,
237- description: ` ${ this .$t (' label.domainid' )} : ${ this .dedicatedDomainId } ` ,
238- status: ' progress'
239- })
240217 },
241218 errorMessage: this .$t (' error.dedicate.host.failed' ),
242219 errorMethod : () => {
243- this .parentFetchData ()
244220 this .fetchParentData ()
245221 this .dedicatedDomainModal = false
246222 },
0 commit comments