diff --git a/resources/assets/scripts/components/dashboard/Account.ts b/resources/assets/scripts/components/dashboard/Account.ts new file mode 100644 index 000000000..4ced6f87f --- /dev/null +++ b/resources/assets/scripts/components/dashboard/Account.ts @@ -0,0 +1,58 @@ +import Vue from 'vue'; +import Navigation from "../core/Navigation"; +import Flash from "../Flash"; +import UpdateEmail from "./account/UpdateEmail"; +import ChangePassword from "./account/ChangePassword"; +import TwoFactorAuthentication from "./account/TwoFactorAuthentication"; +import Modal from "../core/Modal"; + +export default Vue.component('account', { + components: { + TwoFactorAuthentication, + Modal, + ChangePassword, + UpdateEmail, + Flash, + Navigation + }, + + data: function () { + return { + modalVisible: false, + }; + }, + + methods: { + openModal: function () { + this.modalVisible = true; + window.events.$emit('two_factor:open'); + }, + }, + + template: ` +
{{ errors.first('token') }}
+{{ $t('dashboard.account.two_factor.setup.help') }}
+{{response.secret}}
{{ errors.first('token') }}
+{{ errors.first('token') }}
-{{ $t('dashboard.account.two_factor.setup.help') }}
-{{response.secret}}
{{ errors.first('token') }}
-