Skip to content

Commit

Permalink
update select all tooltip text
Browse files Browse the repository at this point in the history
  • Loading branch information
samussiah committed Dec 10, 2018
1 parent 0c8bfc0 commit ec16383
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions build/queryOverview.js
Original file line number Diff line number Diff line change
Expand Up @@ -1222,7 +1222,7 @@
var checkbox = label
.select('input')
.datum(d)
.attr('title', 'Deselect All ' + d.label + ' Options')
.attr('title', 'Deselect all ' + d.label + ' options')
.property('checked', true)
.on('click', function(di) {
var checkbox = d3.select(this);
Expand All @@ -1232,8 +1232,8 @@
checkbox.attr(
'title',
checked
? 'Deselect All ' + di.label + ' Options'
: 'Select All ' + di.label + ' Options'
? 'Deselect all ' + di.label + ' options'
: 'Select all ' + di.label + ' options'
);

//Update filter object.
Expand Down Expand Up @@ -1267,8 +1267,8 @@
.attr(
'title',
checked
? 'Deselect All ' + d.label + ' Options'
: 'Select All ' + d.label + ' Options'
? 'Deselect all ' + d.label + ' options'
: 'Select all ' + d.label + ' options'
)
.property('checked', checked);
}
Expand Down Expand Up @@ -2057,7 +2057,7 @@

function addNoDataIndicator() {
this.svg.select('.qo-no-data').remove();
console.log(this.filtered_data);

if (this.filtered_data.length === 0)
this.svg
.append('text')
Expand Down
4 changes: 2 additions & 2 deletions src/chart/onLayout/addSelectAll.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default function addSelectAll() {
const checkbox = label
.select('input')
.datum(d)
.attr('title', `Deselect All ${d.label} Options`)
.attr('title', `Deselect all ${d.label} options`)
.property('checked', true)
.on('click', function(di) {
const checkbox = d3.select(this);
Expand All @@ -17,7 +17,7 @@ export default function addSelectAll() {
//Update checkbox tooltip.
checkbox.attr(
'title',
checked ? `Deselect All ${di.label} Options` : `Select All ${di.label} Options`
checked ? `Deselect all ${di.label} options` : `Select all ${di.label} options`
);

//Update filter object.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default function updateSelectAll(d, selectedOptions) {
.filter(di => di.value_col === d.value_col)
.attr(
'title',
checked ? `Deselect All ${d.label} Options` : `Select All ${d.label} Options`
checked ? `Deselect all ${d.label} options` : `Select all ${d.label} options`
)
.property('checked', checked);
}
Expand Down
2 changes: 1 addition & 1 deletion src/chart/onResize/addNoDataIndicator.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export default function addNoDataIndicator() {
this.svg.select('.qo-no-data').remove();
console.log(this.filtered_data);

if (this.filtered_data.length === 0)
this.svg
.append('text')
Expand Down

0 comments on commit ec16383

Please sign in to comment.