Skip to content

Commit

Permalink
feature(frontend): Add info message to the edit HTTL popup (#4101)
Browse files Browse the repository at this point in the history
related to: /issues/4094
  • Loading branch information
venetrius authored and psavidis committed Mar 4, 2024
1 parent 8fca15d commit cc893d8
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 0 deletions.
4 changes: 4 additions & 0 deletions webapps/frontend/public/app/cockpit/locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -2491,6 +2491,10 @@
"TIME_TO_LIVE_POPUP_RADIO_CLEAR_TOOLTIP": "Setzt den Wert auf \"null\"",
"TIME_TO_LIVE_POPUP_RADIO_UPDATE": "Wert aktualisieren",
"TIME_TO_LIVE_POPUP_RADIO_UPDATE_TOOLTIP": "Aktualisiert den Wert mit dem jeweilig gewählten",
"TIME_TO_LIVE_POPUP_REMOVAL_TIME_NOT_UPDATED_INFO": "Das Aktualisieren des Lebenszyklus historischer Daten hat keinen Einfluss auf bereits abgeschlossene Instanzen. ",
"TIME_TO_LIVE_POPUP_RUN_BATCH_JOB_INFO_START": "Führen Sie eine",
"TIME_TO_LIVE_POPUP_RUN_BATCH_JOB_INFO_LINK": "Stapelverarbeitung",
"TIME_TO_LIVE_POPUP_RUN_BATCH_JOB_INFO_END": "durch, um abgeschlossene Instanzen zu aktualisieren.",
"TIME_TO_LIVE_POPUP_STATE_STATUS": "Abgeschlossen",
"TIME_TO_LIVE_POPUP_STATE_SUCCESS": "Der Lebenszyklus historischer Daten wurde aktualisiert",
"TIME_TO_LIVE_POPUP_STATE_SUCCESS_MESSAGE_CLEAR": "Der Lebenszyklus historischer Daten wurde auf \"null\" gesetzt.",
Expand Down
4 changes: 4 additions & 0 deletions webapps/frontend/public/app/cockpit/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -2491,6 +2491,10 @@
"TIME_TO_LIVE_POPUP_RADIO_CLEAR_TOOLTIP": "Sets the value to null",
"TIME_TO_LIVE_POPUP_RADIO_UPDATE": "Update Value",
"TIME_TO_LIVE_POPUP_RADIO_UPDATE_TOOLTIP": "Updates the value with the provided one",
"TIME_TO_LIVE_POPUP_REMOVAL_TIME_NOT_UPDATED_INFO": "Updating the History Time To Live value does not affect instances that have already been completed. ",
"TIME_TO_LIVE_POPUP_RUN_BATCH_JOB_INFO_START": "Run a",
"TIME_TO_LIVE_POPUP_RUN_BATCH_JOB_INFO_LINK": "Batch Operation",
"TIME_TO_LIVE_POPUP_RUN_BATCH_JOB_INFO_END": "to update completed instances.",
"TIME_TO_LIVE_POPUP_STATE_STATUS": "Finished",
"TIME_TO_LIVE_POPUP_STATE_SUCCESS": "Updated the history time to live value.",
"TIME_TO_LIVE_POPUP_STATE_SUCCESS_MESSAGE_CLEAR": "The history time to live value has been set to null.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,21 @@ <h3>
<div class="modal-body">
<div notifications-panel></div>

<div ng-show="!status" class="alert alert-info">
<p>
<strong>
{{ 'TIME_TO_LIVE_POPUP_REMOVAL_TIME_NOT_UPDATED_INFO' | translate }}
</strong>
<strong ng-show="showLinkToBatchProcess">
{{ 'TIME_TO_LIVE_POPUP_RUN_BATCH_JOB_INFO_START' | translate }}
<a href="/camunda/app/cockpit/default/#/batch/operation">
{{ 'TIME_TO_LIVE_POPUP_RUN_BATCH_JOB_INFO_LINK' | translate }}
</a>
{{ 'TIME_TO_LIVE_POPUP_RUN_BATCH_JOB_INFO_END' | translate }}
</strong>
</p>
</div>

<div ng-show="!status" class="container-fluid">

<form class="form-inline">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ const Controller = [
'$translate',
function(camAPI, $modalInstance, $scope, Notifications, $translate) {
const resource = camAPI.resource($scope.resource);
$scope.showLinkToBatchProcess =
$scope.$parent?.resource !== 'case-definition';
$scope.status = null;
$scope.mode = 'UPDATE';
$scope.ttl = $scope.definition.historyTimeToLive;
Expand Down

0 comments on commit cc893d8

Please sign in to comment.