You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice if previous state was available in onSubmitSuccess so one can redirect to (e.g list page) with correct pagination and filters.
As stated by @windmaomao in mentioned comment, something like this would be nice
editionView.onSubmitSuccess(['previousState','progression','notification','$state','entry','entity',function(previousState,progression,notification,$state,entry,entity){// stop the progress barprogression.done();// add a notificationnotification.log(`Element #${entry._identifierValue} successfully edited.`,{addnCls: 'humane-flatty-success'});// redirect to the list view$state.go(previousState.name,previousState.params);// cancel the default action (redirect to the edition view)returnfalse;}])
The text was updated successfully, but these errors were encountered:
Has been mentioned long ago in #898.
It would be nice if previous state was available in onSubmitSuccess so one can redirect to (e.g list page) with correct pagination and filters.
As stated by @windmaomao in mentioned comment, something like this would be nice
The text was updated successfully, but these errors were encountered: