Skip to content

Commit

Permalink
Change the rebuild on completion setting name.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Jump committed Dec 10, 2019
1 parent aede815 commit c2a6049
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 12 deletions.
6 changes: 3 additions & 3 deletions uSync8.BackOffice/App_Plugins/uSync8/settings/settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@

<div class="umb-permission">
<umb-toggle class="umb-permission__toggle"
checked="vm.settings.RebuildCacheOnCompleation"
on-click="vm.settings.RebuildCacheOnCompleation = !vm.settings.RebuildCacheOnCompleation">
checked="vm.settings.RebuildCacheOnCompletion"
on-click="vm.settings.RebuildCacheOnCompletion = !vm.settings.RebuildCacheOnCompletion">
</umb-toggle>
<div class="umb-permission__content" ng-click="vm.settings.RebuildCacheOnCompleation = !vm.settings.RebuildCacheOnCompleation">
<div class="umb-permission__content" ng-click="vm.settings.RebuildCacheOnCompletion = !vm.settings.RebuildCacheOnCompletion">
<div>Rebuild Cache after import</div>
<div class="umb-permission__description">Request that Umbraco rebuilds its cache after an import</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion uSync8.BackOffice/Cache/RebuildCacheComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public RebuildCacheComponent(IPublishedSnapshotService snapshotService)

private void Config_Reloaded(uSyncSettings settings)
{
rebuildCacheOnCompleaton = settings.RebuildCacheOnCompleation;
rebuildCacheOnCompleaton = settings.RebuildCacheOnCompletion;
}

public void Initialize()
Expand Down
5 changes: 3 additions & 2 deletions uSync8.BackOffice/Config/uSync8.config
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

<!-- calls a rebuild cache when an import completes
(for Umbraco 8.3+ recommended value is false) -->
<RebuildCacheOnCompleation>False</RebuildCacheOnCompleation>
<RebuildCacheOnCompletion>False</RebuildCacheOnCompletion>

<!-- handler sets -->
<HandlerSets default="default">
Expand All @@ -32,5 +32,6 @@
</Handlers>

</HandlerSets>
</BackOffice>

</BackOffice>
</uSync>
4 changes: 2 additions & 2 deletions uSync8.BackOffice/Configuration/BackOfficeConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public uSyncSettings LoadSettings()
settings.BatchSave = node.Element("BatchSave").ValueOrDefault(false);
settings.ReportDebug = node.Element("ReportDebug").ValueOrDefault(false);
settings.AddOnPing = node.Element("AddOnPing").ValueOrDefault(true);
settings.RebuildCacheOnCompleation = node.Element("RebuildCacheOnCompleation").ValueOrDefault(true);
settings.RebuildCacheOnCompletion = node.Element("RebuildCacheOnCompletion").ValueOrDefault(false);

// load the handlers
var handlerSets = node.Element("HandlerSets");
Expand Down Expand Up @@ -114,7 +114,7 @@ public uSyncSettings SaveSettings(uSyncSettings settings, bool fireReload = fals
node.CreateOrSetElement("UseGuidFilenames", settings.UseGuidNames);
node.CreateOrSetElement("BatchSave", settings.BatchSave);
node.CreateOrSetElement("ReportDebug", settings.ReportDebug);
node.CreateOrSetElement("RebuildCacheOnCompleation", settings.RebuildCacheOnCompleation);
node.CreateOrSetElement("RebuildCacheOnCompletion", settings.RebuildCacheOnCompletion);

if (settings.HandlerSets.Count > 0)
{
Expand Down
2 changes: 1 addition & 1 deletion uSync8.BackOffice/Configuration/uSyncSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class uSyncSettings

public bool AddOnPing { get; set; } = true;

public bool RebuildCacheOnCompleation { get; set; } = true;
public bool RebuildCacheOnCompletion { get; set; } = true;

public HandlerSet DefaultHandlerSet()
=> this.HandlerSets.Where(x => x.Name.InvariantEquals(this.DefaultSet)).FirstOrDefault();
Expand Down
6 changes: 3 additions & 3 deletions uSync8.Site/App_Plugins/uSync8/settings/settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@

<div class="umb-permission">
<umb-toggle class="umb-permission__toggle"
checked="vm.settings.RebuildCacheOnCompleation"
on-click="vm.settings.RebuildCacheOnCompleation = !vm.settings.RebuildCacheOnCompleation">
checked="vm.settings.RebuildCacheOnCompletion"
on-click="vm.settings.RebuildCacheOnCompletion = !vm.settings.RebuildCacheOnCompletion">
</umb-toggle>
<div class="umb-permission__content" ng-click="vm.settings.RebuildCacheOnCompleation = !vm.settings.RebuildCacheOnCompleation">
<div class="umb-permission__content" ng-click="vm.settings.RebuildCacheOnCompletion = !vm.settings.RebuildCacheOnCompletion">
<div>Rebuild Cache after import</div>
<div class="umb-permission__description">Request that Umbraco rebuilds its cache after an import</div>
</div>
Expand Down
1 change: 1 addition & 0 deletions uSync8.Site/config/uSync8.config
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,6 @@
</Handlers>
</HandlerSets>
<RebuildCacheOnCompleation>False</RebuildCacheOnCompleation>
<RebuildCacheOnCompletion>False</RebuildCacheOnCompletion>
</BackOffice>
</uSync>

0 comments on commit c2a6049

Please sign in to comment.