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