mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 12:27:07 +00:00
Show project orgs in projects list
This commit is contained in:
@@ -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 = [];
|
||||
|
||||
Reference in New Issue
Block a user