-
Notifications
You must be signed in to change notification settings - Fork 428
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
Participants list in the sidebar #2407
Conversation
} | ||
return [] | ||
}, | ||
getParticipant: (state) => (token, index) => { |
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.
missing docs
} | ||
return {} | ||
}, | ||
getParticipantIndex: (state) => (token, participantIdentifier) => { |
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.
missing docs
} | ||
state.participants[token].push(participant) | ||
}, | ||
updateParticipant(state, { token, index, updatedData }) { |
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.
missing docs
state.participants[token][index] = Object.assign(state.participants[token][index], updatedData) | ||
} | ||
}, | ||
deleteParticipant(state, { token, index }) { |
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.
missing docs
addParticipant({ commit }, { token, participant }) { | ||
commit('addParticipant', { token, participant }) | ||
}, | ||
async promoteToModerator({ commit, getters }, { token, participantIdentifier }) { |
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.
missing docs
} | ||
commit('updateParticipant', { token, index, updatedData }) | ||
}, | ||
async demoteFromModerator({ commit, getters }, { token, participantIdentifier }) { |
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.
missing docs
} | ||
commit('updateParticipant', { token, index, updatedData }) | ||
}, | ||
async removeParticipant({ commit, getters }, { token, participantIdentifier }) { |
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.
missing docs
be7443e
to
e510633
Compare
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Marco Ambrosini <marcoambrosini@pm.me>
Signed-off-by: Marco Ambrosini <marcoambrosini@pm.me>
Signed-off-by: Joas Schilling <coding@schilljs.com>
df29800
to
59707a2
Compare
Signed-off-by: Joas Schilling <coding@schilljs.com>
No description provided.