File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020( function ( $ , cloudStack , _l , _s ) {
2121 var uiActions = {
2222 standard : function ( $instanceRow , args , additional ) {
23- var listViewArgs = $instanceRow . closest ( 'div.list-view' ) . data ( 'view-args' ) ;
23+ var isAddAction = args . action . isAdd ;
24+
25+ var listViewArgs = $instanceRow . closest ( 'div.list-view' ) . data ( 'view-args' ) ;
2426 var notification = args . action . notification ? args . action . notification : { } ;
2527 var messages = args . action ? args . action . messages : { } ;
2628 var preAction = args . action ? args . action . preAction : { } ;
254256
255257 function ( errorArgs ) {
256258 if ( ! isHeader ) {
257- if ( $instanceRow . data ( 'list-view-new-item' ) ) {
259+ if ( isAddAction == true && $instanceRow . data ( 'list-view-new-item' ) ) {
258260 // For create forms
259261 $instanceRow . remove ( ) ;
260262 } else {
702704
703705 // Actions column
704706 var actionsArray = actions ? $ . map ( actions , function ( v , k ) {
705- if ( k == 'add' ) {
707+ if ( k == 'add' || k == 'rootAdminAddGuestNetwork' ) {
706708 v . isAdd = true ;
707709 }
708710
You can’t perform that action at this time.
0 commit comments