Team member preview refactoring

This commit is contained in:
Čarodej
2021-10-25 18:03:43 +02:00
parent 524791f251
commit d4990d8d5f
11 changed files with 239 additions and 117 deletions

View File

@@ -348,6 +348,18 @@ const FunctionHelpers = {
})
}
Vue.prototype.$mapIntoMemberResource = function (entry) {
return {
data: {
attributes: {
avatar: entry.avatar,
name: entry.name,
color: entry.color,
}
}
}
}
Vue.prototype.$closePopup = function () {
events.$emit('popup:close')
}