Revert "Button for svg export"

This reverts commit 352b6cbe04.
This commit is contained in:
Stela Augustinova
2025-12-01 16:22:35 +01:00
parent 4ab694de0c
commit 85a2a4b873

View File

@@ -33,8 +33,7 @@
import DiagramSettings from '../designer/DiagramSettings.svelte'; import DiagramSettings from '../designer/DiagramSettings.svelte';
import { derived } from 'svelte/store'; import { derived } from 'svelte/store';
import { isProApp } from '../utility/proTools'; import { isProApp } from '../utility/proTools';
import { __t, _t } from '../translations'; import { __t } from '../translations';
import ToolStripDropDownButton from '../buttons/ToolStripDropDownButton.svelte';
export let tabid; export let tabid;
export let conid; export let conid;
@@ -126,13 +125,6 @@
function handleReportCounts(counts) { function handleReportCounts(counts) {
tableCounts = counts; tableCounts = counts;
} }
function getDiagramExportMenu() {
return [
{ command: 'diagram.export' },
{ command: 'diagram.exportSvg' },
];
}
</script> </script>
<ToolStripContainer> <ToolStripContainer>
@@ -170,7 +162,6 @@
<ToolStripCommandButton command="designer.arrange" /> <ToolStripCommandButton command="designer.arrange" />
<ToolStripSaveButton idPrefix="diagram" /> <ToolStripSaveButton idPrefix="diagram" />
<ToolStripCommandButton command="diagram.export" /> <ToolStripCommandButton command="diagram.export" />
<ToolStripDropDownButton menu={getDiagramExportMenu} label={_t('command.designer.exportDiagram', { defaultMessage: 'Export diagram' })} icon="icon report" />
<ToolStripCommandButton command="diagram.undo" /> <ToolStripCommandButton command="diagram.undo" />
<ToolStripCommandButton command="diagram.redo" /> <ToolStripCommandButton command="diagram.redo" />
<ToolStripCommandButton command="diagram.deleteSelectedTables" /> <ToolStripCommandButton command="diagram.deleteSelectedTables" />