fix history box label, destructure localization response

This commit is contained in:
Nathan Woulfe
2021-01-13 10:30:35 +10:00
committed by Michael Latouche
parent 4f3191fabe
commit 63cf3a489d
2 changed files with 10 additions and 10 deletions

View File

@@ -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();

View File

@@ -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"