mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-14 20:23:52 +00:00
36 lines
716 B
Vue
36 lines
716 B
Vue
|
<template>
|
||
|
<div>
|
||
|
<b-button v-b-modal.modal-prevent-closing>Login</b-button>
|
||
|
<b-modal id="modal-prevent-closing" ref="modal" title="Submit Your Name" @ok="handleOk">
|
||
|
<Login id="loginForm" ref="loginForm" inModal />
|
||
|
</b-modal>
|
||
|
</div>
|
||
|
</template>
|
||
|
|
||
|
<script lang="ts">
|
||
|
import { Component, Vue } from 'vue-property-decorator';
|
||
|
|
||
|
import Login from '@/components/Login.vue';
|
||
|
|
||
|
@Component({
|
||
|
components: { Login },
|
||
|
})
|
||
|
export default class LoginModal extends Vue {
|
||
|
$refs!: {
|
||
|
loginForm: HTMLFormElement;
|
||
|
};
|
||
|
|
||
|
resetLogin() {
|
||
|
// this.$refs.loginForm.resetLogin();
|
||
|
}
|
||
|
|
||
|
handleOk(evt) {
|
||
|
evt.preventDefault();
|
||
|
this.$refs.loginForm.handleSubmit();
|
||
|
}
|
||
|
}
|
||
|
</script>
|
||
|
|
||
|
<style scoped>
|
||
|
</style>
|