sr-npm 1.7.949 → 1.7.950
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/package.json
CHANGED
|
@@ -8,8 +8,8 @@ async function supportTeasmPageOnReady(_$w) {
|
|
|
8
8
|
currentItem= _$w(supportTeamsPageIds.TEAM_SUPPORT_DYNAMIC_DATASET).getCurrentItem();
|
|
9
9
|
console.log("currentItem: ",currentItem);
|
|
10
10
|
await handleRecentJobsSection(_$w);
|
|
11
|
-
handlePeopleSection(_$w);
|
|
12
|
-
handleVideoSection(_$w);
|
|
11
|
+
await handlePeopleSection(_$w);
|
|
12
|
+
await handleVideoSection(_$w);
|
|
13
13
|
|
|
14
14
|
}
|
|
15
15
|
|
|
@@ -37,7 +37,7 @@ async function handlePeopleSection(_$w) {
|
|
|
37
37
|
|
|
38
38
|
if(peopleToDisplay.length === 0) {
|
|
39
39
|
console.log("No people found , collapsing people section ");
|
|
40
|
-
collapseSection(_$w,"people");
|
|
40
|
+
await collapseSection(_$w,"people");
|
|
41
41
|
return;
|
|
42
42
|
}
|
|
43
43
|
|
|
@@ -50,7 +50,7 @@ async function handleRecentJobsSection(_$w) {
|
|
|
50
50
|
console.log("currentItem 2 3 4 5: ",currentItem);
|
|
51
51
|
if(supportTeamsPageIds.excludeValues.has(currentItem.title_fld)) {
|
|
52
52
|
console.log("Value is excluded , collapsing recently Jobs Section ");
|
|
53
|
-
collapseSection(_$w,"recentJobs");
|
|
53
|
+
await collapseSection(_$w,"recentJobs");
|
|
54
54
|
return;
|
|
55
55
|
}
|
|
56
56
|
const valueId=supportTeamsPageIds.valueToValueIdMap[currentItem.title_fld]
|
|
@@ -59,7 +59,7 @@ async function handleRecentJobsSection(_$w) {
|
|
|
59
59
|
console.log("Value: ",Value);
|
|
60
60
|
if(Value===undefined) {
|
|
61
61
|
console.log("Value is undefined , collapsing recently Jobs Section ");
|
|
62
|
-
collapseSection(_$w,"recentJobs");
|
|
62
|
+
await collapseSection(_$w,"recentJobs");
|
|
63
63
|
return;
|
|
64
64
|
}
|
|
65
65
|
const latestsJobs=await getLatestJobsByValue(Value);
|
|
@@ -85,7 +85,6 @@ async function handleRecentJobsSection(_$w) {
|
|
|
85
85
|
});
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
-
|
|
89
88
|
async function collapseSection(_$w,sectionName) {
|
|
90
89
|
if(sectionName === "people") {
|
|
91
90
|
await _$w(supportTeamsPageIds.PEOPLE_BUTTON).collapse();
|
|
@@ -93,14 +92,14 @@ async function handleRecentJobsSection(_$w) {
|
|
|
93
92
|
await _$w(supportTeamsPageIds.PEOPLE_REPEATER).collapse();
|
|
94
93
|
}
|
|
95
94
|
else if(sectionName === "video") {
|
|
96
|
-
await _$w(supportTeamsPageIds.VIDEO_SECTION).collapse();
|
|
97
95
|
await _$w(supportTeamsPageIds.VIDEO_TITLE).collapse();
|
|
98
96
|
await _$w(supportTeamsPageIds.VIDEO_PLAYER).collapse();
|
|
97
|
+
await _$w(supportTeamsPageIds.VIDEO_SECTION).collapse();
|
|
99
98
|
}
|
|
100
99
|
else {
|
|
101
|
-
await _$w(supportTeamsPageIds.RECENT_JOBS_SECTION).collapse()
|
|
102
100
|
await _$w(supportTeamsPageIds.RECENT_JOBS_TITLE).collapse()
|
|
103
101
|
await _$w(supportTeamsPageIds.RECENT_JOBS_BUTTON).collapse()
|
|
102
|
+
await _$w(supportTeamsPageIds.RECENT_JOBS_SECTION).collapse()
|
|
104
103
|
}
|
|
105
104
|
}
|
|
106
105
|
module.exports = {
|