@7365admin1/core 3.64.5-staging.292 → 3.64.5-staging.293

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,7 @@
1
+ ---
2
+ "@7365admin1/core": patch
3
+ ---
4
+
5
+ Site Settings saves are no longer refused because the client has one resident-app
6
+ switch turned off. A save is refused only when it would turn ON a resident-app
7
+ switch that the site has stored as off and the client has switched off.
package/dist/index.js CHANGED
@@ -39318,11 +39318,12 @@ function effectiveResidentAppModules(orgModules, siteModules) {
39318
39318
  }
39319
39319
  return effective;
39320
39320
  }
39321
- function residentAppModulesAboveCeiling(orgModules, requested) {
39321
+ function residentAppModulesAboveCeiling(orgModules, requested, stored) {
39322
39322
  const org = asModules(orgModules);
39323
39323
  const wanted = asModules(requested);
39324
+ const had = asModules(stored);
39324
39325
  return residentAppModuleKeys.filter(
39325
- (key) => org[key] === false && wanted[key] === true
39326
+ (key) => org[key] === false && wanted[key] === true && had[key] === false
39326
39327
  );
39327
39328
  }
39328
39329
  function residentAppModulesAboveCeilingMessage(rejected) {
@@ -39542,7 +39543,8 @@ function useSiteController() {
39542
39543
  ) : null;
39543
39544
  const above = residentAppModulesAboveCeiling(
39544
39545
  org?.residentAppModules,
39545
- rest.metadata.residentAppModules
39546
+ rest.metadata.residentAppModules,
39547
+ existing?.metadata?.residentAppModules
39546
39548
  );
39547
39549
  if (above.length) {
39548
39550
  next(