-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat : users listing - admin badge for Group admins #64
Conversation
deelanM
commented
Feb 26, 2021
•
edited
Loading
edited
@@ -26,6 +26,7 @@ export default { | |||
tableHeaders() { | |||
return [ | |||
{ text: this.$t('users.email'), align: `left`, value: `email` }, | |||
{ text: '', value: `role` }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is there a simple string inside backticks? This is confusing
@@ -102,6 +103,13 @@ export default { | |||
<template v-slot:item.email="{ item }"> | |||
<nuxt-link :to="`/users/${item.id}`">{{ item.email }}</nuxt-link> | |||
</template> | |||
<template v-slot:item.role="{ item }"> | |||
<v-badge | |||
v-if="item.role === 'company_admin'" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use constant, please...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed