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

Commit 27b66b4

Browse files
committed
Added new community Blockchain to the skills picker page. Backend work is pending
1 parent 0c9120d commit 27b66b4

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

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

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import _ from 'lodash'
1414
vm.IOS_PROGRAM_ID = parseInt(CONSTANTS.SWIFT_PROGRAM_ID)
1515
vm.PREDIX_PROGRAM_ID = parseInt(CONSTANTS.PREDIX_PROGRAM_ID)
1616
vm.IBM_COGNITIVE_PROGRAM_ID = parseInt(CONSTANTS.IBM_COGNITIVE_PROGRAM_ID)
17+
vm.BLOCKCHAIN_PROGRAM_ID = parseInt(CONSTANTS.BLOCKCHAIN_PROGRAM_ID)
1718
vm.submitSkills = submitSkills
1819
vm.featuredSkills = featuredSkills
1920
vm.userId = userProfile.userId
@@ -93,9 +94,17 @@ import _ from 'lodash'
9394
dirty: false,
9495
display: true
9596
}
97+
vm.communities['blockchain'] = {
98+
displayName: 'Blockchain',
99+
programId: vm.PREDIX_PROGRAM_ID,
100+
status: false,
101+
dirty: false,
102+
display: true
103+
}
96104
_addWatchToCommunity(vm.communities['ios'])
97105
_addWatchToCommunity(vm.communities['predix'])
98106
_addWatchToCommunity(vm.communities['ibm_cognitive'])
107+
_addWatchToCommunity(vm.communities['blockchain'])
99108
}
100109

101110
/**
@@ -133,7 +142,7 @@ import _ from 'lodash'
133142
if (community) {
134143
// set display false to avoid showing already enabled/registered program
135144
// we expect display property to be modified after first load of the page
136-
// community.status = true
145+
community.status = true
137146
if (community.unregister){
138147
community.unregister()
139148
_addWatchToCommunity(community)

app/skill-picker/skill-picker.jade

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,16 @@
1616
img(ng-if="communityKey == 'ios' && !community.status", src=require("../../assets/images/ico-ios-community-grey.svg"))
1717
img(ng-if="communityKey == 'predix' && community.status", src=require("../../assets/images/ico-predix-community.svg"))
1818
img(ng-if="communityKey == 'predix' && !community.status", src=require("../../assets/images/ico-predix-community-grey.svg"))
19+
img(ng-if="communityKey == 'blockchain' && community.status", src=require("../../assets/images/ico-predix-community.svg"))
20+
img(ng-if="communityKey == 'blockchain' && !community.status", src=require("../../assets/images/ico-predix-community-grey.svg"))
1921

2022
.community__text
2123
span.community__title(class="{{!community.status && 'disabled'}}") {{community.displayName}}
2224
.community__description
2325
span(ng-if="communityKey == 'ibm_cognitive'") Cognitive Community
2426
span(ng-if="communityKey == 'ios'") Mobile app design and development for iOS, with Swift emphasis
2527
span(ng-if="communityKey == 'predix'") Design and development on GE’s platform for the Industrial Internet of Things
28+
span(ng-if="communityKey == 'blockchain'") Help create the future of Blockchain-based applications
2629

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

app/topcoder.constants.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ angular.module('CONSTANTS', []).constant('CONSTANTS', {
3030
'SWIFT_PROGRAM_ID' : 3445,
3131
'PREDIX_PROGRAM_ID' : process.env.PREDIX_PROGRAM_ID || 3448,
3232
'IBM_COGNITIVE_PROGRAM_ID' : process.env.IBM_COGNITIVE_PROGRAM_ID || 3449,
33+
'BLOCKCHAIN_PROGRAM_ID' : process.env.BLOCKCHAIN_PROGRAM_ID || 111111,
3334
'UPCOMING_SRMS_URL' : 'https://www.topcoder.com/challenges/data/upcoming/',
3435
'EVENT_USER_LOGGED_IN' : 'user_logged_in',
3536
'EVENT_USER_LOGGED_OUT' : 'user_logged_out',

0 commit comments

Comments
 (0)