2017-05-13 02:54:12 +10:00
|
|
|
const UserFinder = {
|
|
|
|
data: () => ({
|
2017-06-04 06:42:54 +10:00
|
|
|
username: undefined,
|
2017-09-11 03:46:42 +10:00
|
|
|
hidden: true,
|
|
|
|
error: false,
|
|
|
|
loading: false
|
2017-05-13 02:54:12 +10:00
|
|
|
}),
|
|
|
|
methods: {
|
|
|
|
findUser (username) {
|
2018-11-15 06:29:45 +11:00
|
|
|
this.$router.push({ name: 'user-search', query: { query: username } })
|
2017-06-04 06:42:54 +10:00
|
|
|
},
|
|
|
|
toggleHidden () {
|
|
|
|
this.hidden = !this.hidden
|
2018-12-03 15:49:14 +11:00
|
|
|
this.$emit('toggled', this.hidden)
|
2017-05-13 02:54:12 +10:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default UserFinder
|