Skip to content

Commit

Permalink
Feat/dashboardExportPicker (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorfdl authored Nov 10, 2023
1 parent 557955e commit bc2a12d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tago-io/cli",
"version": "1.5.1",
"version": "1.6.0",
"description": "TagoIO Application CLI Node.JS",
"main": "./build/index.js",
"repository": "tago-io/tagoio-cli",
Expand Down
4 changes: 4 additions & 0 deletions src/commands/profile/export/services/dashboards-export.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,11 @@ async function dashboardExport(exportAccount: Account, importAccount: Account, e
if (exportList.length > 0 && options.pick) {
const choices = exportList.map((item) => ({ title: item.label, value: item }));
exportList = await chooseFromList(choices, "Choose the dashboards you want to export:");
if (!exportList) {
exportList = [];
}
}

// @ts-expect-error we are looking only for keys
const import_list = await importAccount.dashboards.list({ page: 1, amount: 99, fields: ["id", "label", "tags"], filter: { tags: [{ key: "export_id" }] } });

Expand Down

0 comments on commit bc2a12d

Please sign in to comment.