moved stuff from settings, cleaned up naming for tabs, added close and peek
This commit is contained in:
parent
2e35289c33
commit
bcebec478e
42 changed files with 801 additions and 1053 deletions
43
src/components/settings_modal/tabs/security_tab/mfa_totp.vue
Normal file
43
src/components/settings_modal/tabs/security_tab/mfa_totp.vue
Normal file
|
@ -0,0 +1,43 @@
|
|||
<template>
|
||||
<div>
|
||||
<div class="method-item">
|
||||
<strong>{{ $t('settings.mfa.otp') }}</strong>
|
||||
<button
|
||||
v-if="!isActivated"
|
||||
class="btn btn-default"
|
||||
@click="doActivate"
|
||||
>
|
||||
{{ $t('general.enable') }}
|
||||
</button>
|
||||
|
||||
<button
|
||||
v-if="isActivated"
|
||||
class="btn btn-default"
|
||||
:disabled="deactivate"
|
||||
@click="doDeactivate"
|
||||
>
|
||||
{{ $t('general.disable') }}
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<confirm
|
||||
v-if="deactivate"
|
||||
:disabled="inProgress"
|
||||
@confirm="confirmDeactivate"
|
||||
@cancel="cancelDeactivate"
|
||||
>
|
||||
{{ $t('settings.enter_current_password_to_confirm') }}:
|
||||
<input
|
||||
v-model="currentPassword"
|
||||
type="password"
|
||||
>
|
||||
</confirm>
|
||||
<div
|
||||
v-if="error"
|
||||
class="alert error"
|
||||
>
|
||||
{{ error }}
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<script src="./mfa_totp.js"></script>
|
Loading…
Add table
Add a link
Reference in a new issue