Improve name of build log state data attribute

This commit is contained in:
Grzegorz Bizon 2016-11-22 14:48:14 +01:00
parent 0914efbfce
commit de24902852
3 changed files with 3 additions and 3 deletions

View file

@ -12,7 +12,7 @@
this.pageUrl = options.pageUrl;
this.buildUrl = options.buildUrl;
this.buildStatus = options.buildStatus;
this.state = options.state1;
this.state = options.logState;
this.buildStage = options.buildStage;
this.updateDropdown = bind(this.updateDropdown, this);
this.$document = $(document);

View file

@ -12,7 +12,7 @@ module BuildsHelper
build_url: namespace_project_build_url(@project.namespace, @project, @build, :json),
build_status: @build.status,
build_stage: @build.stage,
state1: @build.trace_with_state[:state].to_s
log_state: @build.trace_with_state[:state].to_s
}
end
end

View file

@ -54,7 +54,7 @@
build_url: 'http://example.com/root/test-build/builds/2.json',
build_status: 'passed',
build_stage: 'test',
state1: 'buildstate' }}
log_state: 'buildstate' }}
%p.build-detail-row
The artifacts will be removed in