#3419 don't show the back button in the edit screen of dictionary...doesn't make sense to go to settings section when the tree is in the translation section

This commit is contained in:
Dave Woestenborghs
2018-10-24 15:39:45 +02:00
parent d23f5f8124
commit 2af2a9b77f
2 changed files with 3 additions and 10 deletions

View File

@@ -19,10 +19,8 @@ function DictionaryEditController($scope, $routeParams, $location, dictionaryRes
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() {
@@ -102,11 +100,7 @@ function DictionaryEditController($scope, $routeParams, $location, dictionaryRes
});
}
}
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
if (newVal && (newVal !== oldVal) && typeof(oldVal) !== "undefined") {

View File

@@ -12,8 +12,7 @@
hide-icon="true"
hide-description="true"
hide-alias="true"
on-back="vm.back()"
show-back-button="vm.showBackButton">
>
</umb-editor-header>
<umb-editor-container class="form-horizontal">