Skip to content
This repository has been archived by the owner on May 7, 2021. It is now read-only.

Commit

Permalink
Merge pull request #531 from jstrachan/malarkey
Browse files Browse the repository at this point in the history
fix(builds): fix up missing last build
  • Loading branch information
jstrachan committed Jul 26, 2017
2 parents 0ee40d9 + eca9201 commit b0a2470
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/app/kubernetes/model/buildconfig.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@ export class BuildConfig extends KubernetesSpecResource {
}
}
}
if (!this._lastBuild && builds.length) {
this._lastBuild = builds[0];
if (!this.lastBuildName && this._lastBuild) {
this.lastBuildName = this._lastBuild.name;
}
}

for (let build of builds) {
if ("Running" === build.statusPhase) {
Expand Down Expand Up @@ -303,4 +309,4 @@ export function appInfos(buildConfigs: BuildConfigs): Map<string,EnvironmentApps
export class EnvironmentApps {
apps: Map<string, AppInfo> = new Map<string, AppInfo>();
name: string;
}
}

0 comments on commit b0a2470

Please sign in to comment.