Skip to content
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

Open
wants to merge 7 commits into
base: feature/teams
Choose a base branch
from

Conversation

k-rybakov
Copy link
Contributor

No description provided.

@TatsuUkraine
Copy link
Collaborator

@KoR82 please, resolve merge conflicts

})
},
created() {
this.localTeam = this.currentTeam.map(member => {
Copy link
Collaborator

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

</VRow>
<VRow>
<InviteMemberForm v-if="isMemberList" />
<MenuAccessTable v-if="!isMemberList" />
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use v-else

color="primary"
@click="toggleOutput"
>
{{ isMemberList ? 'Change menu access' : 'back' }}
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants