fix(mentioning): change default, adapt settings control to checkbox

This commit is contained in:
Sabe Jones
2019-03-01 07:05:06 -06:00
parent 5e50e98738
commit 4a66e2fbe0
3 changed files with 22 additions and 7 deletions

View File

@@ -66,9 +66,6 @@
.checkbox .checkbox
input(type='checkbox', v-model='user.preferences.suppressModals.streak', @change='set("suppressModals", "streak")') input(type='checkbox', v-model='user.preferences.suppressModals.streak', @change='set("suppressModals", "streak")')
label {{ $t('suppressStreakModal') }} label {{ $t('suppressStreakModal') }}
.checkbox
input(type='checkbox', v-model='user.preferences.searchableUsername', @change='set("searchableUsername")')
label {{ $t('searchableUsernameSetting') }}
//- .checkbox //- .checkbox
//- label {{ $t('confirmScoreNotes') }} //- label {{ $t('confirmScoreNotes') }}
//- input(type='checkbox', v-model='user.preferences.tasks.confirmScoreNotes', @change='set({"preferences.tasks.confirmScoreNotes": user.preferences.tasks.confirmScoreNotes ? true: false})') //- input(type='checkbox', v-model='user.preferences.tasks.confirmScoreNotes', @change='set({"preferences.tasks.confirmScoreNotes": user.preferences.tasks.confirmScoreNotes ? true: false})')
@@ -86,6 +83,18 @@
hr hr
div
h5 {{ $t('mentioning') }}
h6 {{ $t('suggestMyUsername') }}
.form-horizontal
select.form-control(
v-model='user.preferences.searchableUsername',
@change='set("searchableUsername")'
)
option(v-for='option in searchableUsernameOptions' :value='option.value') {{ option.text }}
hr
div div
h5 {{ $t('customDayStart') }} h5 {{ $t('customDayStart') }}
.alert.alert-warning {{ $t('customDayStartInfo1') }} .alert.alert-warning {{ $t('customDayStartInfo1') }}
@@ -259,6 +268,10 @@ export default {
}, },
displayNameIssues: [], displayNameIssues: [],
usernameIssues: [], usernameIssues: [],
searchableUsernameOptions: [
{text: this.$t('onlyPrivateSpaces'), value: false},
{text: this.$t('everywhere'), value: true},
],
}; };
}, },
mounted () { mounted () {

View File

@@ -204,8 +204,10 @@
"goToSettings": "Go to Settings", "goToSettings": "Go to Settings",
"usernameVerifiedConfirmation": "Your username, <%= username %>, is confirmed!", "usernameVerifiedConfirmation": "Your username, <%= username %>, is confirmed!",
"usernameNotVerified": "Please confirm your username.", "usernameNotVerified": "Please confirm your username.",
"changeUsernameDisclaimer": "We will be transitioning login names to unique, public usernames soon. This username will be used for invitations, @mentions in chat, and messaging.", "changeUsernameDisclaimer": "This username will be used for invitations, @mentions in chat, and messaging.",
"verifyUsernameVeteranPet": "One of these Veteran Pets will be waiting for you after you've finished confirming!", "verifyUsernameVeteranPet": "One of these Veteran Pets will be waiting for you after you've finished confirming!",
"searchableUsernameSetting": "Allow username to appear in searches", "mentioning": "Mentioning",
"searchableUsernamePopover": "If enabled, other users can @mention and invite you easier." "suggestMyUsername": "Suggest my username",
"everywhere": "Everywhere",
"onlyPrivateSpaces": "Only in private spaces"
} }

View File

@@ -460,7 +460,7 @@ let schema = new Schema({
reverseChatOrder: {$type: Boolean, default: false}, reverseChatOrder: {$type: Boolean, default: false},
background: String, background: String,
displayInviteToPartyWhenPartyIs1: {$type: Boolean, default: true}, displayInviteToPartyWhenPartyIs1: {$type: Boolean, default: true},
searchableUsername: {$type: Boolean, default: true}, searchableUsername: {$type: Boolean, default: false},
webhooks: {$type: Schema.Types.Mixed, default: () => { webhooks: {$type: Schema.Types.Mixed, default: () => {
return {}; return {};
}}, }},