Add a few missing localizations for edit media

This commit is contained in:
Kenn Jacobsen
2019-01-27 14:01:42 +01:00
committed by Sebastiaan Janssen
parent 3f080ab277
commit 27ce8c8ebc
2 changed files with 4 additions and 5 deletions

View File

@@ -42,7 +42,7 @@
<umb-button ng-if="model.infiniteMode"
action="close()"
button-style="link"
label="Close"
label-key="general_close"
type="button">
</umb-button>
@@ -50,14 +50,13 @@
ng-if="page.listViewPath"
type="link"
href="#{{page.listViewPath}}"
label="Return to list"
label-key="buttons_returnToList">
</umb-button>
<!-- label-key="buttons_save" -->
<umb-button alias="save"
type="submit"
label="{{page.submitButtonLabel}}"
label-key="{{page.submitButtonLabelKey}}"
button-style="success"
shortcut="ctrl+s"
state="page.saveButtonState">

View File

@@ -40,7 +40,7 @@ function mediaEditController($scope, $routeParams, $q, appState, mediaResource,
$scope.page.menu.currentNode = null; //the editors affiliated node
$scope.page.listViewPath = null;
$scope.page.saveButtonState = "init";
$scope.page.submitButtonLabel = "Save";
$scope.page.submitButtonLabelKey = "buttons_save";
/** Syncs the content item to it's tree node - this occurs on first load and after saving */
function syncTreeNode(content, path, initialLoad) {
@@ -103,7 +103,7 @@ function mediaEditController($scope, $routeParams, $q, appState, mediaResource,
// setup infinite mode
if(infiniteMode) {
$scope.page.submitButtonLabel = "Save and Close";
$scope.page.submitButtonLabelKey = "buttons_saveAndClose";
}
}