Commit 11785719 authored by Annabel Dunstone Gray's avatar Annabel Dunstone Gray

Use btn-primary for running builds btn

parent e4c282c0
...@@ -67,7 +67,7 @@ ...@@ -67,7 +67,7 @@
MergeRequestWidget.prototype.addEventListeners = function() { MergeRequestWidget.prototype.addEventListeners = function() {
var allowedPages; var allowedPages;
allowedPages = ['show', 'commits', 'builds', 'pipelines', 'changes']; allowedPages = ['show', 'commits', 'builds', 'pipelines', 'changes'];
return $(document).on('page:change.merge_request', (function(_this) { $(document).on('page:change.merge_request', (function(_this) {
return function() { return function() {
var page; var page;
page = $('body').data('page').split(':').last(); page = $('body').data('page').split(':').last();
...@@ -245,7 +245,7 @@ ...@@ -245,7 +245,7 @@
case "not_found": case "not_found":
return this.setMergeButtonClass('btn-danger'); return this.setMergeButtonClass('btn-danger');
case "running": case "running":
return this.setMergeButtonClass('btn-warning'); return this.setMergeButtonClass('btn-info');
case "success": case "success":
case "success_with_warnings": case "success_with_warnings":
return this.setMergeButtonClass('btn-create'); return this.setMergeButtonClass('btn-create');
...@@ -263,7 +263,7 @@ ...@@ -263,7 +263,7 @@
}; };
MergeRequestWidget.prototype.setMergeButtonClass = function(css_class) { MergeRequestWidget.prototype.setMergeButtonClass = function(css_class) {
return $('.js-merge-button,.accept-action .dropdown-toggle').removeClass('btn-danger btn-warning btn-create').addClass(css_class); return $('.js-merge-button,.accept-action .dropdown-toggle').removeClass('btn-danger btn-info btn-create').addClass(css_class);
}; };
return MergeRequestWidget; return MergeRequestWidget;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment