Change to propagation login complete event
Rename AccountManager to AccountAuth
This commit is contained in:
parent
4094a32ab2
commit
fb9d11969b
|
@ -18,12 +18,13 @@
|
|||
>Login</BaseButton>
|
||||
</form>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { ipcRenderer } from "electron"
|
||||
import { Component, Vue } from "vue-property-decorator"
|
||||
type Instance = string
|
||||
@Component
|
||||
export default class Auth extends Vue {
|
||||
export default class AccountAuth extends Vue {
|
||||
public instance: Instance = ""
|
||||
public code: string = ""
|
||||
public domain: string = ""
|
||||
|
@ -38,15 +39,15 @@ export default class Auth extends Vue {
|
|||
ipcRenderer.send(`new-account-setup`, this.instance)
|
||||
}
|
||||
public authCode() {
|
||||
let code = this.code
|
||||
ipcRenderer.send(`new-account-auth`, code, this.instance)
|
||||
ipcRenderer.send(`new-account-auth`, this.code, this.instance)
|
||||
this.code = ""
|
||||
this.instance = ''
|
||||
ipcRenderer.once(
|
||||
`login-complete`,
|
||||
(e: Event) => {
|
||||
|
||||
this.$emit('login-complete')
|
||||
}
|
||||
);
|
||||
)
|
||||
}
|
||||
}
|
||||
</script>
|
Loading…
Reference in New Issue
Block a user