Skip to content

Commit f416123

Browse files
authored
Merge pull request #45 from FAIRsharing/dev
Dev
2 parents efa2b05 + 7acfa90 commit f416123

File tree

2 files changed

+45
-2
lines changed

2 files changed

+45
-2
lines changed

src/components/Registry/__tests__/CollapseTreeGraph.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ describe("CollapseTreeGraph.vue", function () {
5252
await wrapper.vm.getGraphData();
5353
const component = wrapper.findComponent("[data-testid='selectGraph']");
5454
await component.setValue(itemList[1]);
55-
expect(component.vm.modelValue).toBe("2");
55+
expect(component.vm.modelValue).toBe("bar");
5656
});
5757

5858
it("can check if getGraphData() method have the error in catch block", async () => {

src/components/Tools/ResourceTable.vue

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,15 @@
3131
</li>
3232
</ul>
3333
</template>
34-
34+
<template #item.organisation="{ item }">
35+
<a
36+
:href="item.organisationURL"
37+
rel="noopener noreferrer"
38+
target="_blank"
39+
>
40+
{{ item.organisation }}
41+
</a>
42+
</template>
3543
<template #item.readingMaterial="{ item }">
3644
<a
3745
:href="item.readingMaterialURL"
@@ -41,6 +49,18 @@
4149
{{ item.readingMaterial }}
4250
</a>
4351
</template>
52+
<template #item.contactName="{ item }">
53+
{{ item.contactName }}
54+
<a
55+
:href="`mailto:${item.contactEmail}`"
56+
rel="noopener noreferrer"
57+
target="_blank"
58+
>{{ item.contactEmail }}</a
59+
>
60+
</template>
61+
<template #item.reviewed="{ item }">
62+
{{ item.reviewed === "Y" ? "Yes" : "No" }}
63+
</template>
4464
</v-data-table>
4565
</div>
4666
</template>
@@ -89,6 +109,24 @@ export default {
89109
align: "center",
90110
key: "readingMaterial",
91111
},
112+
{
113+
title: "Contact Name",
114+
value: "contactName",
115+
align: "center",
116+
key: "contactName",
117+
},
118+
{
119+
title: "Comment",
120+
value: "comment",
121+
align: "center",
122+
key: "comment",
123+
},
124+
{
125+
title: "Reviewed",
126+
value: "reviewed",
127+
align: "center",
128+
key: "reviewed",
129+
},
92130
],
93131
resources: [],
94132
noData: "",
@@ -141,9 +179,14 @@ export default {
141179
executionType: obj[3],
142180
keyFeatures: obj[4].split("\n"),
143181
organisation: obj[5],
182+
organisationURL: obj[6],
144183
targetObjects: obj[7],
145184
readingMaterial: obj[8],
146185
readingMaterialURL: obj[9],
186+
contactName: obj[10],
187+
contactEmail: obj[11],
188+
comment: obj[12],
189+
reviewed: obj[13],
147190
});
148191
}
149192
});

0 commit comments

Comments
 (0)