make bio field auto-complete

This commit is contained in:
Xiaofeng An 2019-02-08 10:50:27 -05:00
parent fb0cf64549
commit 2d91c9d949
2 changed files with 4 additions and 2 deletions

View file

@ -2,6 +2,7 @@ import { unescape } from 'lodash'
import TabSwitcher from '../tab_switcher/tab_switcher.js'
import StyleSwitcher from '../style_switcher/style_switcher.vue'
import AutoCompleteInput from '../autocomplete_input/autocomplete_input.vue'
import fileSizeFormatService from '../../services/file_size_format/file_size_format.js'
const UserSettings = {
@ -41,7 +42,8 @@ const UserSettings = {
},
components: {
StyleSwitcher,
TabSwitcher
TabSwitcher,
AutoCompleteInput
},
computed: {
user () {

View file

@ -11,7 +11,7 @@
<p>{{$t('settings.name')}}</p>
<input class='name-changer' id='username' v-model="newName"></input>
<p>{{$t('settings.bio')}}</p>
<textarea class="bio" v-model="newBio"></textarea>
<auto-complete-input :classObj="{ bio: true }" v-model="newBio"/>
<p>
<input type="checkbox" v-model="newLocked" id="account-locked">
<label for="account-locked">{{$t('settings.lock_account_description')}}</label>