Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 4298d93

Browse files
author
Vikas Agarwal
committed
Asana task#207155413864497, Add Predix opt-in to Skill Picker upon account activation
-- Added predix community option in skill picker. Reused the IOS community images for now. Need to replace those with appropriate ones.
1 parent 3ee3ef1 commit 4298d93

File tree

5 files changed

+43
-0
lines changed

5 files changed

+43
-0
lines changed

app/skill-picker/skill-picker.controller.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import _ from 'lodash'
1212
var vm = this
1313
vm.ASSET_PREFIX = CONSTANTS.ASSET_PREFIX
1414
vm.IOS_PROGRAM_ID = CONSTANTS.SWIFT_PROGRAM_ID
15+
vm.PREDIX_PROGRAM_ID = CONSTANTS.PREDIX_PROGRAM_ID
1516
vm.submitSkills = submitSkills
1617
vm.featuredSkills = featuredSkills
1718
vm.userId = userProfile.userId
@@ -63,7 +64,9 @@ import _ from 'lodash'
6364
*/
6465
function initCommunities() {
6566
vm.communities['ios'] = { displayName: 'iOS', programId: vm.IOS_PROGRAM_ID, status: false, dirty: false, display: true}
67+
vm.communities['predix'] = { displayName: 'Predix', programId: vm.PREDIX_PROGRAM_ID, status: false, dirty: false, display: true}
6668
_addWatchToCommunity(vm.communities['ios'])
69+
_addWatchToCommunity(vm.communities['predix'])
6770
}
6871

6972
/**

app/skill-picker/skill-picker.jade

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,14 @@
1212
.community__icon(ng-class="{'community__icon--disabled': !community.status}")
1313
img(ng-if="communityKey == 'ios' && community.status", src=require("../../assets/images/ico-ios-community.svg"))
1414
img(ng-if="communityKey == 'ios' && !community.status", src=require("../../assets/images/ico-ios-community-grey.svg"))
15+
img(ng-if="communityKey == 'predix' && community.status", src=require("../../assets/images/ico-predix-community.svg"))
16+
img(ng-if="communityKey == 'predix' && !community.status", src=require("../../assets/images/ico-predix-community-grey.svg"))
1517

1618
.community__text
1719
span.community__title(class="{{!community.status && 'disabled'}}") {{community.displayName}}
1820
.community__description
1921
span(ng-if="communityKey == 'ios'") Mobile app design and development for iOS, with Swift emphasis
22+
span(ng-if="communityKey == 'predix'") Design and development on GE’s platform for the Industrial Internet of Things
2023

2124
onoff-switch(model="community.status", unique-id="'community-' + communityKey")
2225

app/topcoder.constants.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ angular.module('CONSTANTS', []).constant('CONSTANTS', {
2828

2929
'NEW_CHALLENGES_URL' : 'https://www.topcoder.com/challenges/develop/upcoming/',
3030
'SWIFT_PROGRAM_ID' : 3445,
31+
'PREDIX_PROGRAM_ID' : process.env.PREDIX_PROGRAM_ID || 3448,
3132
'UPCOMING_SRMS_URL' : 'https://www.topcoder.com/challenges/data/upcoming/',
3233
'EVENT_USER_LOGGED_IN' : 'user_logged_in',
3334
'EVENT_USER_LOGGED_OUT' : 'user_logged_out',
Lines changed: 18 additions & 0 deletions
Loading
Lines changed: 18 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)