Skip to content

Commit

Permalink
Avoid settings reload on visualization refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
guerler committed Feb 11, 2018
1 parent 269be96 commit 79fc30c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,11 @@ export default Backbone.Model.extend({
this.groups.reset();
this.groups.add(d.groups);
this.set("modified", false);
this.trigger("load");
console.debug("model::load() - Loading chart model " + d.attributes.type + ".");
return true;
}
this.trigger("load");
console.debug("model::load() - Visualization attributes unavailable.");
return false;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default Backbone.View.extend({
var self = this;
this.chart = app.chart;
this.setElement("<div/>");
this.listenTo(this.chart, "change", function() {
this.listenTo(this.chart, "load", function() {
self.render();
});
},
Expand Down
1 change: 1 addition & 0 deletions client/galaxy/style/less/charts.less
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
float: left;
width: 30%;
height: 100vh;
padding-bottom: 32px;
overflow: hidden;
display: flex;
flex-direction: column;
Expand Down
4 changes: 4 additions & 0 deletions static/style/blue/base.css

Large diffs are not rendered by default.

0 comments on commit 79fc30c

Please sign in to comment.