update: in toolbar, open drawer instead of dialog
This commit is contained in:
committed by
Nicolás Hatcher Andrés
parent
c283fd7b60
commit
5094a7fe4d
@@ -24,7 +24,6 @@ import {
|
|||||||
Grid2x2Check,
|
Grid2x2Check,
|
||||||
Grid2x2X,
|
Grid2x2X,
|
||||||
ImageDown,
|
ImageDown,
|
||||||
Inbox,
|
|
||||||
Italic,
|
Italic,
|
||||||
Minus,
|
Minus,
|
||||||
PaintBucket,
|
PaintBucket,
|
||||||
@@ -519,12 +518,12 @@ function Toolbar(properties: ToolbarProperties) {
|
|||||||
{properties.showGridLines ? <Grid2x2Check /> : <Grid2x2X />}
|
{properties.showGridLines ? <Grid2x2Check /> : <Grid2x2X />}
|
||||||
</StyledButton>
|
</StyledButton>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
<Tooltip title={t("toolbar.name_manager")}>
|
<Tooltip title={t("toolbar.named_ranges")}>
|
||||||
<StyledButton
|
<StyledButton
|
||||||
type="button"
|
type="button"
|
||||||
$pressed={false}
|
$pressed={false}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setNameManagerDialogOpen(true);
|
properties.openDrawer();
|
||||||
}}
|
}}
|
||||||
disabled={!canEdit}
|
disabled={!canEdit}
|
||||||
>
|
>
|
||||||
@@ -543,19 +542,6 @@ function Toolbar(properties: ToolbarProperties) {
|
|||||||
<ImageDown />
|
<ImageDown />
|
||||||
</StyledButton>
|
</StyledButton>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
|
|
||||||
<Tooltip title={t("toolbar.open_drawer")}>
|
|
||||||
<StyledButton
|
|
||||||
type="button"
|
|
||||||
$pressed={false}
|
|
||||||
onClick={() => {
|
|
||||||
properties.openDrawer();
|
|
||||||
}}
|
|
||||||
disabled={!canEdit}
|
|
||||||
>
|
|
||||||
<Inbox />
|
|
||||||
</StyledButton>
|
|
||||||
</Tooltip>
|
|
||||||
</ButtonGroup>
|
</ButtonGroup>
|
||||||
|
|
||||||
<ColorPicker
|
<ColorPicker
|
||||||
|
|||||||
@@ -21,11 +21,11 @@
|
|||||||
"decimal_places_increase": "Increase decimal places",
|
"decimal_places_increase": "Increase decimal places",
|
||||||
"decimal_places_decrease": "Decrease decimal places",
|
"decimal_places_decrease": "Decrease decimal places",
|
||||||
"show_hide_grid_lines": "Show/hide grid lines",
|
"show_hide_grid_lines": "Show/hide grid lines",
|
||||||
"name_manager": "Name manager",
|
"named_ranges": "Named ranges",
|
||||||
"vertical_align_bottom": "Align bottom",
|
"vertical_align_bottom": "Align bottom",
|
||||||
"vertical_align_middle": " Align middle",
|
"vertical_align_middle": " Align middle",
|
||||||
"vertical_align_top": "Align top",
|
"vertical_align_top": "Align top",
|
||||||
"selected_png": "Export Selected area as PNG",
|
"selected_png": "Export selected area as PNG",
|
||||||
"wrap_text": "Wrap text",
|
"wrap_text": "Wrap text",
|
||||||
"scroll_left": "Scroll left",
|
"scroll_left": "Scroll left",
|
||||||
"scroll_right": "Scroll right",
|
"scroll_right": "Scroll right",
|
||||||
|
|||||||
Reference in New Issue
Block a user