@@ -666,12 +677,13 @@
private List _siteGroupDefinitions = new List();
private List _sites = new List();
private int _siteGroupDefinitionId = -1;
- private int _siteId = -1;
+ private int _siteId;
private string _groupName = string.Empty;
private string _synchronization = "Update";
private string _notify = "True";
private string _localization = "False";
private string _member = "Primary";
+ private string _synchronized = string.Empty;
private bool _addSiteGroupDefinition = false;
private string _tenant = string.Empty;
@@ -1290,6 +1302,7 @@
if (siteGroup.SiteId == _siteId)
{
_member = site.Fingerprint;
+ _synchronized = UtcToLocal(siteGroup.SynchronizedOn).ToString();
}
}
}
@@ -1301,24 +1314,22 @@
private async void SiteChanged(ChangeEventArgs e)
{
_siteId = int.Parse(e.Value.ToString());
- if (_siteId != -1)
+ var siteGroup = await SiteGroupService.GetSiteGroupAsync(_siteId, _siteGroupDefinitionId);
+ if (siteGroup != null)
{
- var siteGroup = await SiteGroupService.GetSiteGroupAsync(_siteId, _siteGroupDefinitionId);
- if (siteGroup != null)
+ if (siteGroup.SiteGroupDefinition.PrimarySiteId == _siteId)
{
- if (siteGroup.SiteGroupDefinition.PrimarySiteId == _siteId)
- {
- _member = "Primary";
- }
- else
- {
- _member = "Secondary";
- }
+ _member = "Primary";
}
else
{
- _member = "False";
+ _member = "Secondary";
}
+ _synchronized = UtcToLocal(siteGroup.SynchronizedOn).ToString();
+ }
+ else
+ {
+ _member = "False";
}
StateHasChanged();
}
@@ -1328,6 +1339,7 @@
_groupName = "";
_siteId = PageState.Site.SiteId;
_member = "Primary";
+ _synchronized = "";
_addSiteGroupDefinition = true;
}
diff --git a/Oqtane.Client/Resources/Modules/Admin/Site/Index.resx b/Oqtane.Client/Resources/Modules/Admin/Site/Index.resx
index e7efa0bb..f0f8f414 100644
--- a/Oqtane.Client/Resources/Modules/Admin/Site/Index.resx
+++ b/Oqtane.Client/Resources/Modules/Admin/Site/Index.resx
@@ -526,7 +526,7 @@
Localization?
- Specifies if each site that is part of the group contains content which is localized in a different language
+ Specifies if the content of the sites in the group are localizedPrimary
@@ -559,12 +559,18 @@
Notify?
- Specifies if the site administrator of secondary sites should be notified of any synchronization activity
+ Specifies if the administrators of secondary sites should be notified of any synchronization activitySite:
- he sites in this tenant (database)
+ The sites in this tenant (database)
+
+
+ Synchronized:
+
+
+ The date/time of the last synchronization for the site
\ No newline at end of file