Skip to content

Commit

Permalink
start swapping display names with names
Browse files Browse the repository at this point in the history
  • Loading branch information
mazameli committed Jan 23, 2019
1 parent ad7c2a9 commit 16645d6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ export default class FieldPane extends Component {

const query = question.query();

let fieldName = field.display_name;
let tableName = query.table() ? query.table().display_name : "";
let fieldName = field.name;
let tableName = query.table() ? query.table().name : "";

let useForCurrentQuestion = [],
usefulQuestions = [];
Expand Down Expand Up @@ -162,15 +162,15 @@ export default class FieldPane extends Component {
usefulQuestions.push(
<QueryButton
icon="number"
text={t`Sum of all values of ${fieldName}`}
text={t`Sum of all values`}
onClick={this.setQuerySum}
/>,
);
}
usefulQuestions.push(
<QueryButton
icon="table"
text={t`All distinct values of ${fieldName}`}
text={t`See all distinct values`}
onClick={this.setQueryDistinct}
/>,
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const MainPane = ({ databases, show }) => (
className="text-brand text-brand-darken-hover no-decoration"
onClick={() => show("table", table)}
>
{table.display_name}
{table.name}
</a>
</li>
))}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export default class TablePane extends Component {
key={item.id}
onClick={() => this.props.show(itemType, item)}
>
{item.display_name || item.name}
{item.name}
</ListItem>
))}
</ul>
Expand Down

0 comments on commit 16645d6

Please sign in to comment.