}
aria-label={t('Save as')}
disabled={disabled}
>
{`${t('Save as')}\u2026`}
{isOpen && (
{t('Save for Org')}
)}
);
}
type DefaultProps = {
disabled: boolean;
};
type Props = DefaultProps & {
api: Client;
eventView: EventView;
/**
* DO NOT USE `Location` TO GENERATE `EventView` IN THIS COMPONENT.
*
* In this component, state is generated from EventView and SavedQueriesStore.
* Using Location to rebuild EventView will break the tests. `Location` is
* passed down only because it is needed for navigation.
*/
location: Location;
organization: Organization;
projects: Project[];
queryDataLoading: boolean;
router: InjectedRouter;
savedQuery: SavedQuery | undefined;
setHomepageQuery: (homepageQuery?: SavedQuery) => void;
setSavedQuery: (savedQuery: SavedQuery) => void;
updateCallback: () => void;
yAxis: string[];
homepageQuery?: SavedQuery;
isHomepage?: boolean;
};
type State = {
isEditingQuery: boolean;
isNewQuery: boolean;
queryName: string;
};
class SavedQueryButtonGroup extends PureComponent