mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 07:07:35 +01:00
PM opt-in opt-out intert internationalization
This commit is contained in:
@@ -26,8 +26,8 @@
|
|||||||
triggers="hover",
|
triggers="hover",
|
||||||
placement="right",
|
placement="right",
|
||||||
)
|
)
|
||||||
h4.popover-content-title {{popoverTitle}}
|
h4.popover-content-title {{PMAction}} {{$t('disabledPMPopoverTitle')}}
|
||||||
.popover-content-text {{popoverText}}
|
.popover-content-text {{$t('disabledPMPopoverText')}}
|
||||||
.row(v-if="!this.user.inbox.optOut")
|
.row(v-if="!this.user.inbox.optOut")
|
||||||
.col-4.sidebar
|
.col-4.sidebar
|
||||||
.search-section
|
.search-section
|
||||||
@@ -61,10 +61,10 @@
|
|||||||
.col-12
|
.col-12
|
||||||
.caption-disabled
|
.caption-disabled
|
||||||
.svg-icon.envelope(v-html="icons.messageIcon")
|
.svg-icon.envelope(v-html="icons.messageIcon")
|
||||||
h3 Private messages are disabled
|
h3 {{$t('disabledPMCaptionTitle')}}
|
||||||
p.text-center Private messages are disabled and no one can send them to you.
|
p.text-center {{$t('disabledPMCaptionLine1')}}
|
||||||
p.text-center {{popoverText}}
|
p.text-center {{$t('disabledPMCaptionLine2')}}
|
||||||
button.btn.btn-primary(@click="toggleOpt()") Enable
|
button.btn.btn-primary(@click="toggleOpt()") {{$t('PMEnable')}}
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
@@ -243,6 +243,15 @@
|
|||||||
padding: 20px;
|
padding: 20px;
|
||||||
|
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
|
.envelope {
|
||||||
|
width: 30px;
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
h3 {
|
||||||
|
margin-top: 1em;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
@@ -367,15 +376,10 @@ export default {
|
|||||||
return conversation.name.toLowerCase().indexOf(this.search.toLowerCase()) !== -1;
|
return conversation.name.toLowerCase().indexOf(this.search.toLowerCase()) !== -1;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
popoverTitle() {
|
PMAction() {
|
||||||
let action = '';
|
return this.user.inbox.optOut ?
|
||||||
this.user.inbox.optOut ?
|
this.$t('PMEnable') :
|
||||||
action = 'Enable' :
|
this.$t('PMDisable');
|
||||||
action = 'Disable';
|
|
||||||
return `${action} private messages`
|
|
||||||
},
|
|
||||||
popoverText() {
|
|
||||||
return 'You can enable or disable private messaging at any time.';
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|||||||
@@ -289,6 +289,13 @@
|
|||||||
"messages": "Messages",
|
"messages": "Messages",
|
||||||
"emptyMessagesLine1": "You don't have any messages",
|
"emptyMessagesLine1": "You don't have any messages",
|
||||||
"emptyMessagesLine2": "Send a message to start a conversation!",
|
"emptyMessagesLine2": "Send a message to start a conversation!",
|
||||||
|
"PMEnable": "Enable",
|
||||||
|
"PMDisable": "Disable",
|
||||||
|
"disabledPMPopoverTitle": " private messages",
|
||||||
|
"disabledPMPopoverText": "You can enable or disable private messaging at any time.",
|
||||||
|
"disabledPMCaptionTitle": "Private messages are disabled",
|
||||||
|
"disabledPMCaptionLine1": "Private messages are disabled and no one can send them to you.",
|
||||||
|
"disabledPMCaptionLine2": "You can enable or disable private messaging at any time.",
|
||||||
"userSentMessage": "<span class=\"notification-bold\"><%= user %></span> sent you a message",
|
"userSentMessage": "<span class=\"notification-bold\"><%= user %></span> sent you a message",
|
||||||
"letsgo": "Let's Go!",
|
"letsgo": "Let's Go!",
|
||||||
"selected": "Selected",
|
"selected": "Selected",
|
||||||
|
|||||||
Reference in New Issue
Block a user