sr-npm 1.7.513 → 1.7.514
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.
package/backend/data.js
CHANGED
|
@@ -357,7 +357,6 @@ async function syncJobsFast() {
|
|
|
357
357
|
await createCollections();
|
|
358
358
|
await clearCollections();
|
|
359
359
|
await fillSecretManagerMirror();
|
|
360
|
-
|
|
361
360
|
console.log("saving jobs data to CMS");
|
|
362
361
|
await saveJobsDataToCMS();
|
|
363
362
|
console.log("saved jobs data to CMS successfully");
|
package/package.json
CHANGED
package/pages/careersPage.js
CHANGED
|
@@ -4,7 +4,7 @@ const { window } = require('@wix/site-window');
|
|
|
4
4
|
const { query,queryParams,onChange} = require("wix-location-frontend");
|
|
5
5
|
const { location } = require("@wix/site-location");
|
|
6
6
|
const { COLLECTIONS } = require('../backend/collectionConsts');
|
|
7
|
-
|
|
7
|
+
const { getTokenFromCMS } = require('../backend/secretsData');
|
|
8
8
|
const {
|
|
9
9
|
debounce,
|
|
10
10
|
getFilter,
|
|
@@ -495,12 +495,19 @@ async function updateMapMarkers(_$w){
|
|
|
495
495
|
|
|
496
496
|
}
|
|
497
497
|
|
|
498
|
-
async function handleBrandDropdown(_$w){
|
|
498
|
+
async function handleBrandDropdown(_$w){
|
|
499
499
|
const brands=await wixData.query(COLLECTIONS.BRANDS).find();
|
|
500
|
+
const disableMultiBrand=await getTokenFromCMS(TOKEN_NAME.DISABLE_MULTI_BRAND)
|
|
501
|
+
if(disableMultiBrand==='true'){
|
|
502
|
+
console.log("disabling brand dropdown because disableMultiBrand is true");
|
|
503
|
+
_$w('#dropdownBrand').hide();
|
|
504
|
+
}
|
|
505
|
+
else{
|
|
500
506
|
if(brands.items.length>1){
|
|
501
507
|
console.log("showing brand dropdown");
|
|
502
508
|
_$w('#dropdownBrand').show();
|
|
503
509
|
}
|
|
510
|
+
}
|
|
504
511
|
}
|
|
505
512
|
module.exports = {
|
|
506
513
|
careersPageOnReady,
|