Skip to content

Commit

Permalink
fix(artifacts): HTTP default artifact needs reference field (#6836)
Browse files Browse the repository at this point in the history
For the same reason as in a previous [PR], we also need to set the
reference field for default artifacts.

[PR]: #6679
  • Loading branch information
xavileon authored and ezimanyi committed Apr 11, 2019
1 parent e618548 commit e17f387
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ module(DEFAULT_HTTP_ARTIFACT, []).config(() => {
controller: function(artifact: IArtifact) {
this.artifact = artifact;
this.artifact.type = 'http/file';
if (this.artifact.name && !this.artifact.reference) {
this.artifact.reference = this.artifact.name;
}
},
controllerAs: 'ctrl',
template: `
Expand All @@ -29,7 +32,7 @@ module(DEFAULT_HTTP_ARTIFACT, []).config(() => {
<input type="text"
placeholder="http://host/path/file.ext"
class="form-control input-sm"
ng-model="ctrl.artifact.name" />
ng-model="ctrl.artifact.reference" />
</div>
</div>
</div>
Expand Down

0 comments on commit e17f387

Please sign in to comment.