[Windowing] urlService

urlService added to the edit action
bundle.json in addition to being
implemented, however 2nd time edit
bug still occurring. Also fixed urlService
test suite. WTD 23.
This commit is contained in:
Shivam Dave
2015-06-25 13:16:15 -07:00
parent fd6459394a
commit 6d28add055
7 changed files with 41 additions and 13 deletions

View File

@@ -31,7 +31,7 @@ define(
* Edit Mode. Exits the editing user interface and invokes object
* capabilities to persist the changes that have been made.
*/
function SaveAction($location, context) {
function SaveAction($location, urlService, navigationService, context) {
var domainObject = context.domainObject;
// Invoke any save behavior introduced by the editor capability;
@@ -45,7 +45,7 @@ define(
// Discard the current root view (which will be the editing
// UI, which will have been pushed atop the Browise UI.)
function returnToBrowse() {
return $location.path("/browse");
return $location.path(urlService.urlForNewTab("browse", domainObject));
}
return {