Add message if prevent cleanup is globally disabled.

This commit is contained in:
Bjarke Berg
2021-10-29 14:51:38 +02:00
parent b0ff096a8a
commit 82a64ca589
4 changed files with 9 additions and 1 deletions

View File

@@ -102,6 +102,12 @@
<div class="sub-view-column-right">
<umb-box-content>
<p ></p>
<div class="umb-panel-group__details-status-text" ng-if="model.historyCleanup.globalEnableCleanup">
<p class="umb-panel-group__details-status-action"><localize key="contentTypeEditor_historyCleanupGloballyDisabled"></localize></p>
</div>
<umb-control-group label="@contentTypeEditor_historyCleanupPreventCleanup">
<umb-toggle checked="model.historyCleanup.preventCleanup" on-click="vm.toggleHistoryCleanupPreventCleanup()"></umb-toggle>
</umb-control-group>

View File

@@ -1724,6 +1724,7 @@ To manage your website, simply open the Umbraco backoffice and start adding cont
<key alias="historyCleanupKeepAllVersionsNewerThanDays">Keep all versions newer than days</key>
<key alias="historyCleanupKeepLatestVersionPerDayForDays">Keep latest version per day for days</key>
<key alias="historyCleanupPreventCleanup">Prevent cleanup</key>
<key alias="historyCleanupGloballyDisabled">NOTE! The cleanup of historically content versions are disabled globally. These settings will not take effect before it is enabled.</key>
</area>
<area alias="languages">
<key alias="addLanguage">Add language</key>

View File

@@ -1755,6 +1755,7 @@ To manage your website, simply open the Umbraco backoffice and start adding cont
<key alias="historyCleanupKeepAllVersionsNewerThanDays">Keep all versions newer than days</key>
<key alias="historyCleanupKeepLatestVersionPerDayForDays">Keep latest version per day for days</key>
<key alias="historyCleanupPreventCleanup">Prevent cleanup</key>
<key alias="historyCleanupGloballyDisabled">NOTE! The cleanup of historically content versions are disabled globally. These settings will not take effect before it is enabled.</key>
</area>
<area alias="languages">
<key alias="addLanguage">Add language</key>

View File

@@ -12,7 +12,7 @@ namespace Umbraco.Web.Models.ContentEditing
[DataMember(Name = "globalKeepLatestVersionPerDayForDays")]
public int? GlobalKeepLatestVersionPerDayForDays { get; set;}
[DataMember(Name = "GlobalEnableCleanup")]
[DataMember(Name = "globalEnableCleanup")]
public bool GlobalEnableCleanup { get; set; }
}