File tree 4 files changed +5
-32
lines changed
4 files changed +5
-32
lines changed Original file line number Diff line number Diff line change @@ -9,3 +9,4 @@ npm-debug.log
9
9
// vim .swp
10
10
* .swp
11
11
.env
12
+ .idea /
Original file line number Diff line number Diff line change @@ -47,14 +47,12 @@ export default class DashboardView extends React.Component {
47
47
}
48
48
49
49
//webhooks requires removal of heroku link code, then it should work.
50
- /*
51
50
if ( features . hooks && features . hooks . create && features . hooks . read && features . hooks . update && features . hooks . delete ) {
52
51
coreSubsections . push ( {
53
52
name : 'Webhooks' ,
54
53
link : '/webhooks'
55
54
} ) ;
56
55
}
57
- */
58
56
59
57
if ( features . cloudCode && features . cloudCode . jobs ) {
60
58
coreSubsections . push ( {
Original file line number Diff line number Diff line change @@ -230,18 +230,6 @@ export default class Webhooks extends TableView {
230
230
}
231
231
232
232
renderRow ( hook ) {
233
- if ( hook . herokuAppId ) {
234
- let openHerokuApp = ( ) => { window . open ( 'https://dashboard.heroku.com/apps/' + ( hook . herokuAppName || hook . herokuAppId ) , '_blank' ) } ;
235
- return < tr
236
- onClick = { openHerokuApp }
237
- key = { hook . herokuAppId } >
238
- < td style = { { cursor : 'pointer' } } width = { '15%' } > Heroku App</ td >
239
- < td style = { { cursor : 'pointer' } } width = { '15%' } > </ td >
240
- < td style = { { cursor : 'pointer' } } width = { '20%' } > </ td >
241
- < td style = { { cursor : 'pointer' } } width = { '40%' } > < Icon name = 'heroku' fill = '#343445' width = { 20 } height = { 20 } /> { hook . herokuAppName || hook . herokuAppId } </ td >
242
- < td width = { '10%' } > { hook . deleted ? < TableWarning text = 'Deleted' /> : null } </ td >
243
- </ tr > ;
244
- }
245
233
let showEdit = hook . url ? ( ) => {
246
234
this . setState ( {
247
235
hookType : hook . functionName ? 'function' : hook . triggerName ,
Original file line number Diff line number Diff line change @@ -34,25 +34,11 @@ function WebhookStore(state, action) {
34
34
{ } ,
35
35
{ useMasterKey : true }
36
36
) ;
37
- let herokuAppsPromise = get ( '/apps/' + action . app . slug + '/cloud_code/heroku_link' ) . then ( ( { herokuApps } ) => {
38
- herokuApps = herokuApps ? herokuApps : [ ] ;
39
- let appNamePromises = herokuApps . map ( herokuApp => {
40
- return getHerokuAppName ( 'https://api.heroku.com/apps/' + herokuApp . herokuAppId ) . then ( ( { name } ) => {
41
- herokuApp . herokuAppName = name ;
42
- return herokuApp ;
43
- } ) . fail ( ( ) => {
44
- herokuApp . deleted = true ;
45
- return herokuApp ;
46
- } ) ;
47
- } )
48
- return Parse . Promise . when ( appNamePromises ) . always ( ( ) => Parse . Promise . as ( herokuApps ) ) ;
49
- } ) ;
50
- return Parse . Promise . when ( functionsPromise , triggersPromise , herokuAppsPromise ) . then ( (
51
- { results : functions } ,
52
- { results : triggers } ,
53
- herokuApps
37
+ return Parse . Promise . when ( functionsPromise , triggersPromise ) . then ( (
38
+ functions ,
39
+ triggers
54
40
) => {
55
- return Map ( { lastFetch : new Date ( ) , webhooks : List ( functions . concat ( triggers ) . concat ( herokuApps ) ) } ) ;
41
+ return Map ( { lastFetch : new Date ( ) , webhooks : List ( functions . concat ( triggers ) ) } ) ;
56
42
} ) ;
57
43
case ActionTypes . CREATE :
58
44
let addHookToStore = hook => state . set ( 'webhooks' , state . get ( 'webhooks' ) . push ( hook ) ) ;
You can’t perform that action at this time.
0 commit comments