Commit 1c12fde9 authored by guerler's avatar guerler
Browse files

Change label

parent 158df791
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -106,5 +106,5 @@ it("displays create new visualization option if dataset is not required", async
    });
    await wrapper.vm.$nextTick();
    const results = await wrapper.vm.doQuery();
    expect(results).toEqual([{ id: "", name: "Create a new visualization..." }]);
    expect(results).toEqual([{ id: "", name: "Open visualization..." }]);
});
+1 −1
Original line number Diff line number Diff line
@@ -38,7 +38,7 @@ async function doQuery() {
    if (currentHistoryId.value && plugin.value) {
        const data = await fetchPluginHistoryItems(plugin.value.name, currentHistoryId.value);
        return [
            ...(!requiresDataset.value ? [{ id: "", name: "Create a new visualization..." }] : []),
            ...(!requiresDataset.value ? [{ id: "", name: `Open visualization...` }] : []),
            ...data.hdas.map((hda) => ({ id: hda.id, name: `${hda.hid}: ${hda.name}` })),
        ];
    } else {