From 4a0856c91999dd58174f37ad02468ba8189cef05 Mon Sep 17 00:00:00 2001 From: user Date: Sun, 29 Apr 2018 03:07:03 +0300 Subject: [PATCH] Client: opt-in / opt-out functionalitonality is ready --- website/client/components/userMenu/inbox.vue | 77 +++++++++++++++++++- website/client/store/actions/members.js | 7 ++ 2 files changed, 83 insertions(+), 1 deletion(-) diff --git a/website/client/components/userMenu/inbox.vue b/website/client/components/userMenu/inbox.vue index 58428090c7..f918dd75b2 100644 --- a/website/client/components/userMenu/inbox.vue +++ b/website/client/components/userMenu/inbox.vue @@ -16,7 +16,12 @@ // .col-8.to-form(v-if='displayCreate') // strong To: // b-form-input - .row + .row + .col-12 + div.toggle(:class="!this.user.inbox.optOut && 'toggle--active'" @click="toggleOpt()") + div.bar + div.circle + .row(v-if="!this.user.inbox.optOut") .col-4.sidebar .search-section b-form-input(:placeholder="$t('search')", v-model='search') @@ -45,6 +50,9 @@ .new-message-row(v-if='selectedConversation.key') textarea(v-model='newMessage') button.btn.btn-secondary(@click='sendPrivateMessage()') Send + .row(v-else) + .col-12 + .h3.text-center You disabled private messages