File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -144,6 +144,18 @@ export default {
144144 virtualmachineid : {
145145 value : ( record ) => { return record . id }
146146 }
147+ } ,
148+ successMethod : ( obj , result ) => {
149+ console . log ( 'here' )
150+ const vm = result . jobresult . virtualmachine || { }
151+ if ( result . jobstatus === 1 && vm . password ) {
152+ const name = vm . displayname || vm . name || vm . id
153+ obj . $notification . success ( {
154+ message : `${ obj . $t ( 'label.reinstall.vm' ) } : ` + name ,
155+ description : `${ obj . $t ( 'label.password.reset.confirm' ) } : ` + vm . password ,
156+ duration : 0
157+ } )
158+ }
147159 }
148160 } ,
149161 {
Original file line number Diff line number Diff line change @@ -871,6 +871,9 @@ export default {
871871 })
872872 }
873873 }
874+ if (' successMethod' in action) {
875+ action .successMethod (this , result)
876+ }
874877 },
875878 errorMethod : () => this .fetchData (),
876879 loadingMessage: ` ${ this .$t (action .label )} - ${ resourceName} ` ,
You can’t perform that action at this time.
0 commit comments