File tree Expand file tree Collapse file tree 4 files changed +10
-11
lines changed Expand file tree Collapse file tree 4 files changed +10
-11
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,7 +230,7 @@ export default class Webhooks extends TableView {
230
230
}
231
231
232
232
renderRow ( hook ) {
233
- if ( hook . herokuAppId ) {
233
+ /* if (hook.herokuAppId) {
234
234
let openHerokuApp = () => {window.open('https://dashboard.heroku.com/apps/' + (hook.herokuAppName || hook.herokuAppId), '_blank')};
235
235
return <tr
236
236
onClick={openHerokuApp}
@@ -241,7 +241,7 @@ export default class Webhooks extends TableView {
241
241
<td style={{ cursor: 'pointer' }} width={'40%'}><Icon name='heroku' fill='#343445' width={20} height={20}/> {hook.herokuAppName || hook.herokuAppId}</td>
242
242
<td width={'10%'}>{hook.deleted ? <TableWarning text='Deleted' /> : null}</td>
243
243
</tr>;
244
- }
244
+ } */
245
245
let showEdit = hook . url ? ( ) => {
246
246
this . setState ( {
247
247
hookType : hook . functionName ? 'function' : hook . triggerName ,
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ 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 } ) => {
37
+ /* let herokuAppsPromise = get('/apps/' + action.app.slug + '/cloud_code/heroku_link').then(({ herokuApps }) => {
38
38
herokuApps = herokuApps ? herokuApps : [];
39
39
let appNamePromises = herokuApps.map(herokuApp => {
40
40
return getHerokuAppName('https://api.heroku.com/apps/' + herokuApp.herokuAppId).then(({ name }) => {
@@ -46,13 +46,13 @@ function WebhookStore(state, action) {
46
46
});
47
47
})
48
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
49
+ }); */
50
+ return Parse . Promise . when ( functionsPromise , triggersPromise /* , herokuAppsPromise */ ) . then ( (
51
+ functions ,
52
+ triggers /* ,
53
+ herokuApps */
54
54
) => {
55
- return Map ( { lastFetch : new Date ( ) , webhooks : List ( functions . concat ( triggers ) . concat ( herokuApps ) ) } ) ;
55
+ return Map ( { lastFetch : new Date ( ) , webhooks : List ( functions . concat ( triggers ) /* .concat(herokuApps) */ ) } ) ;
56
56
} ) ;
57
57
case ActionTypes . CREATE :
58
58
let addHookToStore = hook => state . set ( 'webhooks' , state . get ( 'webhooks' ) . push ( hook ) ) ;
You can’t perform that action at this time.
0 commit comments