akkoma-fe/src/components/user_finder/user_finder.js
2018-12-03 07:49:14 +03:00

19 lines
382 B
JavaScript

const UserFinder = {
data: () => ({
username: undefined,
hidden: true,
error: false,
loading: false
}),
methods: {
findUser (username) {
this.$router.push({ name: 'user-search', query: { query: username } })
},
toggleHidden () {
this.hidden = !this.hidden
this.$emit('toggled', this.hidden)
}
}
}
export default UserFinder