Skip to content

Commit

Permalink
fix(core/entityTag): Fix error message after successful entity tag up…
Browse files Browse the repository at this point in the history
…dates (#4873)
  • Loading branch information
christopherthielen authored and anotherchrisberry committed Feb 20, 2018
1 parent ed5ff51 commit 56cd1c0
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ export class AmazonServerGroupActions extends React.Component<IAmazonServerGroup
application={app}
entityType="serverGroup"
ownerOptions={entityTagTargets}
onUpdate={app.serverGroups.refresh}
onUpdate={() => app.serverGroups.refresh()}
/>
)}
</Dropdown.Menu>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { IDeferred, ILogService, IPromise, IQService, IScope } from 'angular';
import { get } from 'lodash';
import { UIRouter } from '@uirouter/core';
import { BindAll } from 'lodash-decorators';
import { Subject, Subscription } from 'rxjs';

import { Application } from '../application.model';
Expand Down Expand Up @@ -189,6 +190,7 @@ export class DataSourceConfig implements IDataSourceConfig {
}
}

@BindAll()
export class ApplicationDataSource implements IDataSourceConfig {
/** Index Signature */
[k: string]: any;
Expand Down
2 changes: 1 addition & 1 deletion app/scripts/modules/core/src/cluster/ClusterPod.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export class ClusterPod extends React.Component<IClusterPodProps, IClusterPodSta
hOffsetPercent="20%"
entityType="cluster"
pageLocation="pod"
onUpdate={application.serverGroups.refresh}
onUpdate={() => application.serverGroups.refresh()}
/>
</h6>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export class DefaultClusterPodTitle extends React.Component<IClusterPodTitleProp
entityType="cluster"
pageLocation="pod"
className="inverse"
onUpdate={application.serverGroups.refresh}
onUpdate={() => application.serverGroups.refresh()}
/>
</div>

Expand Down
2 changes: 1 addition & 1 deletion app/scripts/modules/core/src/loadBalancer/LoadBalancer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export class LoadBalancer extends React.Component<ILoadBalancerProps> {
placement="bottom"
entityType="loadBalancer"
pageLocation="pod"
onUpdate={application.loadBalancers.refresh}
onUpdate={() => application.loadBalancers.refresh()}
/>
<span className="text-right">
<HealthCounts container={loadBalancer.instanceCounts}/>
Expand Down
2 changes: 1 addition & 1 deletion app/scripts/modules/core/src/serverGroup/ServerGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ export class ServerGroup extends React.Component<IServerGroupProps, IServerGroup
hOffsetPercent="20%"
entityType="serverGroup"
pageLocation="pod"
onUpdate={application.serverGroups.refresh}
onUpdate={() => application.serverGroups.refresh()}
/>
</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export class ServerGroupDetails extends React.Component<IServerGroupDetailsProps
hOffsetPercent="90%"
entityType="serverGroup"
pageLocation="details"
onUpdate={app.serverGroups.refresh}
onUpdate={() => app.serverGroups.refresh()}
/>
)}
</h3>
Expand Down

0 comments on commit 56cd1c0

Please sign in to comment.