Commit 5d06a9be authored by gj4210's avatar gj4210 👽 Committed by janis.streib
Browse files

ADD: mailto button for BCD groups

parent 4e3d2558
......@@ -68,7 +68,8 @@ import {
faFire,
faListOl,
faSearchLocation,
faIndustry
faIndustry,
faEnvelope
} from '@fortawesome/free-solid-svg-icons'
import {
......@@ -159,5 +160,6 @@ library.add(
faListOl,
farBuilding,
faSearchLocation,
faIndustry
faIndustry,
faEnvelope
)
......@@ -111,6 +111,10 @@
</b-badge>
<b-badge class="ml-1" v-if="groups[grp.group_name].is_own" variant="success">Mitglied
</b-badge>
<b-link class="ml-1" v-if="group2mgrs[grp.group_name].length > 0"
:href="`mailto:${group2mgr_emails(grp.group_name).toString()}?subject=Betreuer der Gruppe '${grp.group_name}' zu BCD '${range.name}'`">
<font-awesome-icon icon="envelope"/>
</b-link>
<ul>
<li v-for="mgr in group2mgrs[grp.group_name]" v-bind:key="mgr.mgr_login_name">
<b-link :href="'mailto:'+group_mgrs[mgr.mgr_login_name].email">
......@@ -979,6 +983,13 @@ export default {
// I know. It's disgusting.
}
}
},
group2mgr_emails(group_name) {
const emails = []
this.group2mgrs[group_name].forEach(group2mgr => {
emails.push(this.group_mgrs[group2mgr.mgr_login_name].email)
})
return emails
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment