-
Notifications
You must be signed in to change notification settings - Fork 9
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
Feature/menu-items-access-for-team-members #451
base: feature/teams
Are you sure you want to change the base?
Feature/menu-items-access-for-team-members #451
Conversation
@KoR82 please, resolve merge conflicts |
}) | ||
}, | ||
created() { | ||
this.localTeam = this.currentTeam.map(member => { |
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.
keep in mind that data will be fetched async, so there is a high probability that you will copy the empty array. Also - website switch also will break your logic, because copied values will be from prev selected website
frontend/src/pages/Team.vue
Outdated
</VRow> | ||
<VRow> | ||
<InviteMemberForm v-if="isMemberList" /> | ||
<MenuAccessTable v-if="!isMemberList" /> |
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 v-else
frontend/src/pages/Team.vue
Outdated
color="primary" | ||
@click="toggleOutput" | ||
> | ||
{{ isMemberList ? 'Change menu access' : 'back' }} |
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.
it's better to create computed property, that will return a string based on isMemberList
No description provided.