POST request toggling opt deleted, changed to PUT /user

This commit is contained in:
user
2018-04-29 16:48:10 +03:00
parent 082539b982
commit 4467da980c
4 changed files with 14 additions and 34 deletions

View File

@@ -312,7 +312,7 @@ export default {
return conversation.name.toLowerCase().indexOf(this.search.toLowerCase()) !== -1;
});
},
optTextSet() {
optTextSet () {
if (!this.user.inbox.optOut) {
return {
switchDescription: this.$t('PMDisableFull'),
@@ -323,14 +323,14 @@ export default {
switchDescription: this.$t('PMEnableFull'),
popoverText: this.$t('PMDisabledOptPopoverText'),
};
}
},
},
methods: {
toggleClick () {
this.displayCreate = !this.displayCreate;
},
toggleOpt(){
this.$store.dispatch('members:togglePrivateMessagesOpt');
toggleOpt () {
this.$store.dispatch('user:togglePrivateMessagesOpt');
},
selectConversation (key) {
let convoFound = this.conversations.find((conversation) => {