Fix username

This commit is contained in:
kPherox
2019-04-29 23:19:48 +09:00
parent 4af9362a93
commit b0b978b7a6
3 changed files with 9 additions and 9 deletions

View File

@@ -48,15 +48,15 @@ export default class AccountAuth extends Vue {
ipcRenderer.send(`new-account-setup`, this.instance)
}
public authCode() {
ipcRenderer.send(`new-account-auth`, this.code, this.instance)
this.code = ""
this.instance = ''
ipcRenderer.once(
`login-complete`,
(e: Event, account: Account) => {
this.$emit('login-complete', account)
}
)
ipcRenderer.send(`new-account-auth`, this.code, this.instance)
this.code = ""
this.instance = ''
}
}
</script>

View File

@@ -55,7 +55,7 @@ export default class Welcome extends Vue {
public status: Status = 'welcome'
public loggedIn(account: Account) {
this.username = `@${account.acct}@${account.domain}`
this.username = `${account.acct}@${account.domain}`
this.status = 'select_timeline'
}
}