File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -89,8 +89,10 @@ export const pollJobPlugin = {
8989
9090 // Ensure we refresh on the same / parent page
9191 const currentPage = this . $router . currentRoute . path
92+ console . log ( currentPage )
93+ const fromDeployVM = options . originalPage === '/deployVirtualMachine' && ( currentPage === '/vm' || currentPage . startsWith ( '/vm/' ) )
9294 const samePage = options . originalPage === currentPage || options . originalPage . startsWith ( currentPage + '/' )
93- if ( samePage && ( ! action || ! ( 'isFetchData' in action ) || ( action . isFetchData ) ) ) {
95+ if ( fromDeployVM || ( samePage && ( ! action || ! ( 'isFetchData' in action ) || ( action . isFetchData ) ) ) ) {
9496 eventBus . $emit ( 'async-job-complete' , action )
9597 }
9698 successMethod ( result )
@@ -124,8 +126,9 @@ export const pollJobPlugin = {
124126
125127 // Ensure we refresh on the same / parent page
126128 const currentPage = this . $router . currentRoute . path
129+ const fromDeployVM = options . originalPage === '/deployVirtualMachine' && ( currentPage === '/vm' || currentPage . startsWith ( '/vm/' ) )
127130 const samePage = options . originalPage === currentPage || options . originalPage . startsWith ( currentPage + '/' )
128- if ( samePage && ( ! action || ! ( 'isFetchData' in action ) || ( action . isFetchData ) ) ) {
131+ if ( fromDeployVM || ( samePage && ( ! action || ! ( 'isFetchData' in action ) || ( action . isFetchData ) ) ) ) {
129132 eventBus . $emit ( 'async-job-complete' , action )
130133 }
131134 errorMethod ( result )
You can’t perform that action at this time.
0 commit comments