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,
|
||||
Grid2x2X,
|
||||
ImageDown,
|
||||
Inbox,
|
||||
Italic,
|
||||
Minus,
|
||||
PaintBucket,
|
||||
@@ -519,12 +518,12 @@ function Toolbar(properties: ToolbarProperties) {
|
||||
{properties.showGridLines ? <Grid2x2Check /> : <Grid2x2X />}
|
||||
</StyledButton>
|
||||
</Tooltip>
|
||||
<Tooltip title={t("toolbar.name_manager")}>
|
||||
<Tooltip title={t("toolbar.named_ranges")}>
|
||||
<StyledButton
|
||||
type="button"
|
||||
$pressed={false}
|
||||
onClick={() => {
|
||||
setNameManagerDialogOpen(true);
|
||||
properties.openDrawer();
|
||||
}}
|
||||
disabled={!canEdit}
|
||||
>
|
||||
@@ -543,19 +542,6 @@ function Toolbar(properties: ToolbarProperties) {
|
||||
<ImageDown />
|
||||
</StyledButton>
|
||||
</Tooltip>
|
||||
|
||||
<Tooltip title={t("toolbar.open_drawer")}>
|
||||
<StyledButton
|
||||
type="button"
|
||||
$pressed={false}
|
||||
onClick={() => {
|
||||
properties.openDrawer();
|
||||
}}
|
||||
disabled={!canEdit}
|
||||
>
|
||||
<Inbox />
|
||||
</StyledButton>
|
||||
</Tooltip>
|
||||
</ButtonGroup>
|
||||
|
||||
<ColorPicker
|
||||
|
||||
@@ -21,11 +21,11 @@
|
||||
"decimal_places_increase": "Increase decimal places",
|
||||
"decimal_places_decrease": "Decrease decimal places",
|
||||
"show_hide_grid_lines": "Show/hide grid lines",
|
||||
"name_manager": "Name manager",
|
||||
"named_ranges": "Named ranges",
|
||||
"vertical_align_bottom": "Align bottom",
|
||||
"vertical_align_middle": " Align middle",
|
||||
"vertical_align_top": "Align top",
|
||||
"selected_png": "Export Selected area as PNG",
|
||||
"selected_png": "Export selected area as PNG",
|
||||
"wrap_text": "Wrap text",
|
||||
"scroll_left": "Scroll left",
|
||||
"scroll_right": "Scroll right",
|
||||
|
||||
Reference in New Issue
Block a user