Show project orgs in projects list

This commit is contained in:
D. Berge
2025-07-11 22:45:05 +02:00
parent 1895168889
commit bdf62e2d8b

View File

@@ -19,7 +19,7 @@
>mdi-archive-outline</v-icon>
</template>
<template v-else>
<a :href="`/projects/${item.pid}`">{{value}}</a>
<a :href="`/projects/${item.pid}`" :title="title(item)">{{value}}</a>
</template>
</template>
@@ -205,6 +205,15 @@ export default {
}
},
title (item) {
if (item.organisations) {
return "Access:\n" + Object.entries(item.organisations).map( org =>
`${org[0]} (${Object.entries(org[1]).filter( access => access[1] ).map( access => access[0] ).join(", ")})`
).join("\n")
}
return "";
},
async load () {
await this.list();
const promises = [];