fix history box label, destructure localization response
This commit is contained in:
committed by
Michael Latouche
parent
4f3191fabe
commit
63cf3a489d
@@ -54,15 +54,15 @@
|
||||
|
||||
localizationService.localizeMany(keys)
|
||||
.then(function (data) {
|
||||
labels.deleted = data[0];
|
||||
labels.unpublished = data[1]; //aka draft
|
||||
labels.published = data[2];
|
||||
labels.publishedPendingChanges = data[3];
|
||||
labels.notCreated = data[4];
|
||||
labels.unsavedChanges = data[5];
|
||||
labels.doctypeChangeWarning = data[6];
|
||||
labels.notPublished = data[7];
|
||||
scope.chooseLabel = data[8];
|
||||
[labels.deleted,
|
||||
labels.unpublished,
|
||||
labels.published,
|
||||
labels.publishedPendingChanges,
|
||||
labels.notCreated,
|
||||
labels.unsavedChanges,
|
||||
labels.doctypeChangeWarning,
|
||||
labels.notPublished,
|
||||
scope.chooseLabel] = data;
|
||||
|
||||
setNodePublishStatus();
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
|
||||
<umb-box data-element="node-info-history">
|
||||
|
||||
<umb-box-header title="{{historyLabel}}">
|
||||
<umb-box-header title-key="{{historyLabelKey}}" ng-if="historyLabelKey">
|
||||
<umb-button
|
||||
ng-hide="node.trashed || node.id === 0"
|
||||
type="button"
|
||||
|
||||
Reference in New Issue
Block a user