From 66fd184480ce4ab070c0f74e076ecf478904fa13 Mon Sep 17 00:00:00 2001 From: Mads Rasmussen Date: Wed, 14 Nov 2018 12:50:50 +0100 Subject: [PATCH] remove references to dialogService --- .../src/common/services/navigation.service.js | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/common/services/navigation.service.js b/src/Umbraco.Web.UI.Client/src/common/services/navigation.service.js index 568315df21..2441bd2d8f 100644 --- a/src/Umbraco.Web.UI.Client/src/common/services/navigation.service.js +++ b/src/Umbraco.Web.UI.Client/src/common/services/navigation.service.js @@ -5,7 +5,6 @@ * @requires $rootScope * @requires $routeParams * @requires $location - * @requires dialogService * @requires treeService * @requires sectionResource * @@ -14,7 +13,7 @@ * Section navigation and search, and maintain their state for the entire application lifetime * */ -function navigationService($rootScope, $routeParams, $location, $q, $timeout, $injector, eventsService, dialogService, umbModelMapper, treeService, appState) { +function navigationService($rootScope, $routeParams, $location, $q, $timeout, $injector, eventsService, umbModelMapper, treeService, appState) { //the promise that will be resolved when the navigation is ready var navReadyPromise = $q.defer(); @@ -513,14 +512,13 @@ function navigationService($rootScope, $routeParams, $location, $q, $timeout, $i * * @description * Opens a dialog, for a given action on a given tree node - * uses the dialogService to inject the selected action dialog - * into #dialog div.umb-panel-body * the path to the dialog view is determined by: * "views/" + current tree + "/" + action alias + ".html" * The dialog controller will get passed a scope object that is created here with the properties: - * scope.currentNode = the selected tree node - * scope.currentAction = the selected menu item - * so that the dialog controllers can use these properties + * scope.currentNode = the selected tree node + * scope.title = the title of the menu item + * scope.view = the path to the view html file + * so that the dialog controllers can use these properties * * @param {Object} args arguments passed to the function * @param {Scope} args.scope current scope passed to the dialog