-
Notifications
You must be signed in to change notification settings - Fork 509
Restrict posting to moderators #4487
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -82,6 +82,11 @@ | |
|
|
||
| <ActionSeparator /> | ||
|
|
||
| <ActionButton v-if="canLeaveConversation" | ||
| :icon="iconArchive" | ||
| @click.prevent.exact="toggleArchiveConversation"> | ||
| {{ labelArchive }} | ||
| </ActionButton> | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since this is a purely moderator option it should go into the moderator menu?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think it's only a moderator option.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. A per user archiving is way over the top from my pov. |
||
| <ActionButton v-if="canLeaveConversation" | ||
| :icon="iconLeaveConversation" | ||
| @click.prevent.exact="leaveConversation"> | ||
|
|
@@ -137,6 +142,7 @@ export default { | |
| type: 0, | ||
| displayName: '', | ||
| isFavorite: false, | ||
| isArchived: false, | ||
| notificationLevel: 0, | ||
| lastMessage: {}, | ||
| } | ||
|
|
@@ -164,6 +170,14 @@ export default { | |
| return this.item.isFavorite ? t('spreed', 'Remove from favorites') : t('spreed', 'Add to favorites') | ||
| }, | ||
|
|
||
| iconArchive() { | ||
| return this.item.isArchived ? 'icon-star-dark' : 'icon-starred' | ||
| }, | ||
|
|
||
| labelArchive() { | ||
| return this.item.isArchived ? t('spreed', 'Remove from archive') : t('spreed', 'Archive conversation') | ||
| }, | ||
|
|
||
| isNotifyAlways() { | ||
| return this.item.notificationLevel === PARTICIPANT.NOTIFY.ALWAYS | ||
| }, | ||
|
|
@@ -345,6 +359,9 @@ export default { | |
| } | ||
| } | ||
| }, | ||
| async toggleArchiveConversation() { | ||
| this.$store.dispatch('toggleArchive', this.item) | ||
| }, | ||
| async toggleFavoriteConversation() { | ||
| this.$store.dispatch('toggleFavorite', this.item) | ||
| }, | ||
|
|
||
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.
Wrong permission check