Skip to content

Commit

Permalink
[frontend] fix styling and tab title
Browse files Browse the repository at this point in the history
  • Loading branch information
labo-flg committed Jan 10, 2025
1 parent 4b1ee99 commit c13289d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ const WorkspaceCreation = ({ paginationOptions, type }) => {

const createDashboardButton = FAB_REPLACED ? (props) => (
<>
<CreateEntityControlledDial entityType='Dashboard' {...props} />
<Button
color='primary'
variant='outlined'
Expand All @@ -135,6 +134,7 @@ const WorkspaceCreation = ({ paginationOptions, type }) => {
>
{t_i18n('Import dashboard')}
</Button>
<CreateEntityControlledDial entityType='Dashboard' {...props} />
</>
) : ({ onOpen }) => (
<SpeedDial
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ const WorkspaceHeader = ({
needs={[EXPLORE_EXUPDATE]}
hasAccess={canEdit}
>
<div style={{ marginTop: '-8px', float: 'right' }}>
<div style={{ marginTop: '-6px', float: 'right' }}>
<WorkspaceWidgetConfig onComplete={handleAddWidget} workspace={workspace}></WorkspaceWidgetConfig>
</div>
</Security>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,15 @@ const WorkspaceWidgetConfig = ({ workspace, widget, onComplete, closeMenu }) =>
<Button
variant='outlined'
disableElevation
style={{ marginTop: '2.5px', marginLeft: '4px' }}
sx={{ marginLeft: 1 }}
onClick={() => inputRef.current?.click()}
>
{t_i18n('Import Widget')}
</Button>
<Button
variant='contained'
disableElevation
style={{ marginTop: '2.5px', marginLeft: '2px' }}
sx={{ marginLeft: 1 }}
onClick={() => setOpen(true)}
>
{t_i18n('Create Widget')}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import { EXPLORE_EXUPDATE_PUBLISH } from '../../../../../utils/hooks/useGranted'
import useHelper from '../../../../../utils/hooks/useHelper';
import { PublicDashboardsListQuery, PublicDashboardsListQuery$variables } from './__generated__/PublicDashboardsListQuery.graphql';
import { PublicDashboardsFragment$data } from './__generated__/PublicDashboardsFragment.graphql';
import useConnectedDocumentModifier from '../../../../../utils/hooks/useConnectedDocumentModifier';

const publicDashboardFragment = graphql`
fragment PublicDashboards_PublicDashboard on PublicDashboard {
Expand Down Expand Up @@ -103,6 +104,9 @@ const PublicDashboards = () => {
const { t_i18n } = useFormatter();
const { isFeatureEnable } = useHelper();

const { setTitle } = useConnectedDocumentModifier();
setTitle(t_i18n('Public dashboards'));

const initialValues = {
searchTerm: '',
sortBy: 'name',
Expand Down

0 comments on commit c13289d

Please sign in to comment.