Get account pages working
This commit is contained in:
parent
11a70b0343
commit
0c2b2b4341
10 changed files with 417 additions and 416 deletions
58
resources/assets/scripts/components/dashboard/Account.ts
Normal file
58
resources/assets/scripts/components/dashboard/Account.ts
Normal file
|
@ -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: `
|
||||
<div>
|
||||
<navigation/>
|
||||
<div class="container animate fadein mt-2 sm:mt-6">
|
||||
<modal :show="modalVisible" v-on:close="modalVisible = false">
|
||||
<TwoFactorAuthentication v-on:close="modalVisible = false"/>
|
||||
</modal>
|
||||
<flash container="mt-2 sm:mt-6 mb-2"/>
|
||||
<div class="flex flex-wrap">
|
||||
<div class="w-full md:w-1/2">
|
||||
<div class="sm:m-4 md:ml-0">
|
||||
<update-email class="mb-4 sm:mb-8"/>
|
||||
<div class="content-box text-center mb-4 sm:mb-0">
|
||||
<button class="btn btn-green btn-sm" type="submit" id="grid-open-two-factor-modal"
|
||||
v-on:click="openModal"
|
||||
>Configure 2-Factor Authentication</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="w-full md:w-1/2">
|
||||
<change-password class="sm:m-4 md:mr-0"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
`,
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue