Skip to content

Commit

Permalink
make exporting linked entities as an attachment by default because ch…
Browse files Browse the repository at this point in the history
…rome force users to download the csv anyway
  • Loading branch information
Binh Vu committed Apr 13, 2024
1 parent a3cc118 commit fce3419
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions sand/commands/load.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

from pathlib import Path
from typing import List, Tuple

Expand Down
4 changes: 2 additions & 2 deletions www/src/pages/table/MenuBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export const MenuBar = observer(
},
exportLinkedEntities: () => {
routes.tableExportLinkedEntities
.path({ tableId: table.id }, { attachment: false })
.path({ tableId: table.id }, { attachment: true })
.mouseClickNavigationHandler(undefined, true);
},
exportFullModel: () => {
Expand Down Expand Up @@ -231,7 +231,7 @@ export const MenuBar = observer(
</Menu.Item>
<Menu.Item
key="export-linked-entities"
icon={<ExportOutlined />}
icon={<FontAwesomeIcon icon={faDownload} />}
onClick={funcs.exportLinkedEntities}
>
Export linked entities
Expand Down

0 comments on commit fce3419

Please sign in to comment.