diff --git a/src/Umbraco.Web.UI.Client/src/views/dictionary/dictionary.edit.controller.js b/src/Umbraco.Web.UI.Client/src/views/dictionary/dictionary.edit.controller.js
index 1b9d5c3f4c..8c1e7edb73 100644
--- a/src/Umbraco.Web.UI.Client/src/views/dictionary/dictionary.edit.controller.js
+++ b/src/Umbraco.Web.UI.Client/src/views/dictionary/dictionary.edit.controller.js
@@ -6,7 +6,8 @@
* @description
* The controller for editing dictionary items
*/
-function DictionaryEditController($scope, $routeParams, dictionaryResource, treeService, navigationService, appState, editorState, contentEditingHelper, formHelper, notificationsService, localizationService) {
+function DictionaryEditController($scope, $routeParams, $location, dictionaryResource, navigationService, appState, editorState, contentEditingHelper, formHelper, notificationsService, localizationService) {
+
var vm = this;
//setup scope vars
@@ -18,6 +19,10 @@ function DictionaryEditController($scope, $routeParams, dictionaryResource, tree
vm.page.menu.currentSection = appState.getSectionState("currentSection");
vm.page.menu.currentNode = null;
vm.description = "";
+ vm.showBackButton = true;
+
+ vm.save = saveDictionary;
+ vm.back = back;
function loadDictionary() {
@@ -26,9 +31,7 @@ function DictionaryEditController($scope, $routeParams, dictionaryResource, tree
//we are editing so get the content item from the server
dictionaryResource.getById($routeParams.id)
.then(function (data) {
-
bindDictionary(data);
-
vm.page.loading = false;
});
}
@@ -100,7 +103,9 @@ function DictionaryEditController($scope, $routeParams, dictionaryResource, tree
}
}
- vm.save = saveDictionary;
+ function back() {
+ $location.path("settings/dictionary/list");
+ }
$scope.$watch("vm.content.name", function (newVal, oldVal) {
//when the value changes, we need to set the name dirty
diff --git a/src/Umbraco.Web.UI.Client/src/views/dictionary/dictionary.list.controller.js b/src/Umbraco.Web.UI.Client/src/views/dictionary/dictionary.list.controller.js
index 35739b3db7..83daa6b243 100644
--- a/src/Umbraco.Web.UI.Client/src/views/dictionary/dictionary.list.controller.js
+++ b/src/Umbraco.Web.UI.Client/src/views/dictionary/dictionary.list.controller.js
@@ -18,9 +18,10 @@ function DictionaryListController($scope, $location, dictionaryResource, localiz
dictionaryResource.getList()
.then(function (data) {
-
vm.items = data;
-
+ angular.forEach(vm.items, function(item){
+ item.style = { "paddingLeft": item.level * 10 };
+ });
vm.loading = false;
});
}
diff --git a/src/Umbraco.Web.UI.Client/src/views/dictionary/edit.html b/src/Umbraco.Web.UI.Client/src/views/dictionary/edit.html
index c016d37eca..b14517a005 100644
--- a/src/Umbraco.Web.UI.Client/src/views/dictionary/edit.html
+++ b/src/Umbraco.Web.UI.Client/src/views/dictionary/edit.html
@@ -12,14 +12,20 @@
name-locked="vm.page.nameLocked"
hide-icon="true"
hide-description="true"
- hide-alias="true">
+ hide-alias="true"
+ on-back="vm.back()"
+ show-back-button="vm.showBackButton">
-
-
-
-
+
+
+
+
+
+
+
+
diff --git a/src/Umbraco.Web.UI.Client/src/views/dictionary/list.html b/src/Umbraco.Web.UI.Client/src/views/dictionary/list.html
index 82b088df49..db0314639c 100644
--- a/src/Umbraco.Web.UI.Client/src/views/dictionary/list.html
+++ b/src/Umbraco.Web.UI.Client/src/views/dictionary/list.html
@@ -11,36 +11,27 @@
name-locked="true">
-
+
+
+
+
+ | Name |
+ {{column.displayName}} |
+
+
+
+
+ |
+ {{item.name}}
+ |
+
+
+
+ |
+
+
+
+