Skip to content

Commit

Permalink
Fix icon indention in buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
guerler committed Sep 22, 2018
1 parent dce1b8f commit 87d8efe
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions client/galaxy/scripts/mvc/ui/ui-buttons.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,14 @@ var Button = Backbone.View.extend({
this.$title.html(options.wait_text);
} else {
this.$el.addClass(options.cls);
this.$icon.addClass(options.icon);
if (options.icon) {
this.$icon.addClass(options.icon);
}
if (options.title) {
this.$title.html(options.title).addClass("ml-1");
this.$title.html(options.title);
if (options.icon) {
this.$icon.addClass("mr-1");
}
}
}
},
Expand Down

0 comments on commit 87d8efe

Please sign in to comment.