I have made a site, where I have extended the back-end. I use dialogs to collect some information from the user. But I do not think I open or close them right. Because when I have opened a dialog twice, the save function is called twice and so forth.
Is there a special way to close dialogs or something I should do?
Now i open by call open on dialogService and closes by call $scope.submit(data).
I usually never save any changes in my dialog controllers I just edit the main model and save the changes in the main controller and not the dialog controller. But a solution could be something like this in the dialog controller:
Close dialogues...
Hi,
I have made a site, where I have extended the back-end. I use dialogs to collect some information from the user. But I do not think I open or close them right. Because when I have opened a dialog twice, the save function is called twice and so forth.
Is there a special way to close dialogs or something I should do?
Now i open by call open on dialogService and closes by call $scope.submit(data).
I hope you can help!
Hi Kristoffer, I'm opening my dialogs with this code:
And in each dialog i usually add a close button:
// Herman
Hi Herman
what to do in situation, where you do not have a close, but an automated save function. Should I call dialogService.closeAll() after $scope.submit()?
//Kristoffer
Hi Kristoffer,
You can also find the documentation on the dialogue service here.
https://our.umbraco.org/apidocs/ui/#/api/umbraco.services.dialogService and here you all the documentation for Umbraco Backoffice UI
https://our.umbraco.org/apidocs/ui/#/api
Hope this helps,
/Dennis
Hi Kristoffer,
I usually never save any changes in my dialog controllers I just edit the main model and save the changes in the main controller and not the dialog controller. But a solution could be something like this in the dialog controller:
// Herman
is working on a reply...