Skip to content

Commit

Permalink
Hide unused tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
guerler committed Feb 11, 2018
1 parent 45b9e95 commit 0004d40
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 5 deletions.
4 changes: 2 additions & 2 deletions client/galaxy/scripts/mvc/visualization/chart/chart-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ export default Backbone.View.extend({

_template: function() {
return `<div>
<div class="charts-center" style="float: left; width: 70%;"/>
<div class="charts-left" style="float: left; width: 30%;"/>
<div class="charts-center" style="float: left; width: 70%; overflow: scroll;"/>
<div class="charts-left" style="float: left; width: 30%; padding-left: 10px;"/>
<div>`;
}
});
14 changes: 12 additions & 2 deletions client/galaxy/scripts/mvc/visualization/chart/views/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,22 @@ export default Backbone.View.extend({
)
.append(new Settings(this.app).$el)
});
if (this.chart.plugin.groups) {
this.tabs.add({
id: "groups",
title: "Select data",
icon: "fa-database",
tooltip: "Specify data options.",
$el: new Groups(this.app).$el
});
}

// set elements
this.setElement("<div/>");
//this.$el.append(this.message.$el);
this.$el.append(this.description.$el);
this.$el.append(this.message.$el);
this.$el.append(this.tabs.$el.addClass("ui-margin-top-large"));
this.$el.append(this.tabs.$el);
this.message.update({persistent: true, message: 'hey'});
},

/** Show editor */
Expand Down
11 changes: 10 additions & 1 deletion client/galaxy/style/less/charts.less
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
}

.charts-description-text {
word-wrap: break-word;
word-break: break-word;
}

.charts-tooltip {
Expand Down Expand Up @@ -80,4 +80,13 @@
width: 100%;
min-height: 100px;
height: inherit;
}

.charts-left {
.portlet-content {
padding: 0px;
}
.ui-table-section, .ui-portlet-panel .portlet-content {
padding-left: @ui-margin-horizontal;
}
}
4 changes: 4 additions & 0 deletions static/style/blue/base.css

Large diffs are not rendered by default.

0 comments on commit 0004d40

Please sign in to comment.