diff --git a/src/components/BotList.vue b/src/components/BotList.vue index 6e58e413..77188a99 100644 --- a/src/components/BotList.vue +++ b/src/components/BotList.vue @@ -1,5 +1,5 @@ @@ -18,6 +18,7 @@ import Login from '@/components/Login.vue'; export default class LoginModal extends Vue { $refs!: { loginForm: HTMLFormElement; + modal: HTMLElement; }; @Prop({ required: false, default: 'Login', type: String }) loginText!: string; @@ -26,6 +27,12 @@ export default class LoginModal extends Vue { // this.$refs.loginForm.resetLogin(); } + handleLoginResult(result: boolean) { + if (result) { + (this.$refs.modal as any).hide(); + } + } + handleOk(evt) { evt.preventDefault(); this.$refs.loginForm.handleSubmit();