mirror of
https://github.com/apache/superset.git
synced 2024-09-12 00:29:39 -04:00
fix: button translations missing (#11187)
* button translations missing * blank space before text
This commit is contained in:
parent
dde69d82b3
commit
4f0a06dda5
@ -50,7 +50,7 @@ describe('QueryAndSaveButtons', () => {
|
|||||||
|
|
||||||
it('renders buttons with correct text', () => {
|
it('renders buttons with correct text', () => {
|
||||||
expect(wrapper.find(Button).contains('Run')).toBe(true);
|
expect(wrapper.find(Button).contains('Run')).toBe(true);
|
||||||
expect(wrapper.find(Button).contains(' Save')).toBe(true);
|
expect(wrapper.find(Button).contains('Save')).toBe(true);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('calls onQuery when query button is clicked', () => {
|
it('calls onQuery when query button is clicked', () => {
|
||||||
|
@ -188,7 +188,7 @@ export function Menu({
|
|||||||
<Nav className="navbar-right">
|
<Nav className="navbar-right">
|
||||||
{!navbarRight.user_is_anonymous && <NewMenu />}
|
{!navbarRight.user_is_anonymous && <NewMenu />}
|
||||||
{settings && settings.length > 0 && (
|
{settings && settings.length > 0 && (
|
||||||
<NavDropdown id="settings-dropdown" title="Settings">
|
<NavDropdown id="settings-dropdown" title={t('Settings')}>
|
||||||
{flatSettings.map((section, index) => {
|
{flatSettings.map((section, index) => {
|
||||||
if (section === '-') {
|
if (section === '-') {
|
||||||
return (
|
return (
|
||||||
|
@ -69,7 +69,7 @@ export default class PublishedStatus extends React.Component {
|
|||||||
this.togglePublished();
|
this.togglePublished();
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
Draft
|
{t('Draft')}
|
||||||
</Label>
|
</Label>
|
||||||
</TooltipWrapper>
|
</TooltipWrapper>
|
||||||
);
|
);
|
||||||
@ -80,7 +80,7 @@ export default class PublishedStatus extends React.Component {
|
|||||||
placement="bottom"
|
placement="bottom"
|
||||||
tooltip={draftDivTooltip}
|
tooltip={draftDivTooltip}
|
||||||
>
|
>
|
||||||
<Label>Draft</Label>
|
<Label>{t('Draft')}</Label>
|
||||||
</TooltipWrapper>
|
</TooltipWrapper>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -98,7 +98,7 @@ export default class PublishedStatus extends React.Component {
|
|||||||
this.togglePublished();
|
this.togglePublished();
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
Published
|
{t('Published')}
|
||||||
</Label>
|
</Label>
|
||||||
</TooltipWrapper>
|
</TooltipWrapper>
|
||||||
);
|
);
|
||||||
|
@ -88,7 +88,7 @@ export default function QueryAndSaveBtns({
|
|||||||
buttonSize="small"
|
buttonSize="small"
|
||||||
disabled={!canAdd}
|
disabled={!canAdd}
|
||||||
>
|
>
|
||||||
<i className="fa fa-stop-circle-o" /> Stop
|
<i className="fa fa-stop-circle-o" /> {t('Stop')}
|
||||||
</Button>
|
</Button>
|
||||||
) : (
|
) : (
|
||||||
<Button
|
<Button
|
||||||
@ -116,7 +116,7 @@ export default function QueryAndSaveBtns({
|
|||||||
onClick={onSave}
|
onClick={onSave}
|
||||||
data-test="query-save-button"
|
data-test="query-save-button"
|
||||||
>
|
>
|
||||||
<i className="fa fa-plus-circle" /> Save
|
<i className="fa fa-plus-circle" /> {t('Save')}
|
||||||
</Button>
|
</Button>
|
||||||
</ButtonGroup>
|
</ButtonGroup>
|
||||||
{errorMessage && (
|
{errorMessage && (
|
||||||
|
@ -37,7 +37,7 @@
|
|||||||
</table>
|
</table>
|
||||||
<div class="filter-action" style="display:none">
|
<div class="filter-action" style="display:none">
|
||||||
<button type="submit" class="btn btn-sm btn-primary" id="search-action">
|
<button type="submit" class="btn btn-sm btn-primary" id="search-action">
|
||||||
Search <i class="fa fa-search"></i>
|
{{_("Search")}} <i class="fa fa-search"></i>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -54,7 +54,7 @@
|
|||||||
$('.filter-action').toggle(true);
|
$('.filter-action').toggle(true);
|
||||||
} else {
|
} else {
|
||||||
$('.filter-action').toggle(true);
|
$('.filter-action').toggle(true);
|
||||||
$('.filter-action > button').html('Refresh <i class="fa fa-refresh"></i>');
|
$('.filter-action > button').html('{{_("Refresh")}} <i class="fa fa-refresh"></i>');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -74,6 +74,7 @@ class DashboardMixin: # pylint: disable=too-few-public-methods
|
|||||||
"slug": _("Slug"),
|
"slug": _("Slug"),
|
||||||
"charts": _("Charts"),
|
"charts": _("Charts"),
|
||||||
"owners": _("Owners"),
|
"owners": _("Owners"),
|
||||||
|
"published": _("Published"),
|
||||||
"creator": _("Creator"),
|
"creator": _("Creator"),
|
||||||
"modified": _("Modified"),
|
"modified": _("Modified"),
|
||||||
"position_json": _("Position JSON"),
|
"position_json": _("Position JSON"),
|
||||||
|
Loading…
Reference in New Issue
Block a user