mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Suggestions implemented II
This commit is contained in:
parent
bd27876d9c
commit
b3ab6e1b43
@ -1,4 +1,5 @@
|
||||
<template>
|
||||
<ds-container width="small">
|
||||
<ds-card v-if="success" class="success">
|
||||
<ds-space>
|
||||
<sweetalert-icon icon="success" />
|
||||
@ -46,12 +47,18 @@
|
||||
:label="$t('settings.security.change-password.label-new-password-confirm')"
|
||||
/>
|
||||
<password-strength :password="formData.password" />
|
||||
<ds-section>
|
||||
|
||||
<ds-text>
|
||||
<input id="checkbox" type="checkbox" v-model="checkedDefault" @change="checked" />
|
||||
<label for="checkbox" v-html="$t('site.termsAndConditionsCeckbox')"></label>
|
||||
<input
|
||||
id="checkbox"
|
||||
type="checkbox"
|
||||
v-model="checkedConfimed"
|
||||
@change="checked"
|
||||
:checked="checkedConfimed"
|
||||
/>
|
||||
<label for="checkbox" v-html="$t('site.termsAndConditionsRead')"></label>
|
||||
</ds-text>
|
||||
</ds-section>
|
||||
|
||||
<template slot="footer">
|
||||
<ds-space class="backendErrors" v-if="backendErrors">
|
||||
<ds-text align="center" bold color="danger">{{ backendErrors.message }}</ds-text>
|
||||
@ -70,6 +77,7 @@
|
||||
</ds-card>
|
||||
</template>
|
||||
</ds-form>
|
||||
</ds-container>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
@ -112,7 +120,7 @@ export default {
|
||||
disabled: true,
|
||||
success: null,
|
||||
backendErrors: null,
|
||||
checkedDefault: false,
|
||||
checkedConfimed: false,
|
||||
}
|
||||
},
|
||||
props: {
|
||||
@ -121,10 +129,12 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
checked: function() {
|
||||
this.backendErrors = { message: '' }
|
||||
this.backendErrors = { message: null }
|
||||
console.log('tzzzzzzzzzz')
|
||||
this.disabled = true
|
||||
},
|
||||
async submit() {
|
||||
if (this.checkedDefault) {
|
||||
if (this.checkedConfimed) {
|
||||
const { name, password, about } = this.formData
|
||||
const { email, nonce } = this
|
||||
try {
|
||||
@ -143,7 +153,7 @@ export default {
|
||||
this.backendErrors = err
|
||||
}
|
||||
} else {
|
||||
this.backendErrors = { message: this.$t(`site.termsAndConditionsNoChecked`) }
|
||||
this.backendErrors = { message: this.$t(`site.confirmTermsAndConditions`) }
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
@ -23,8 +23,8 @@
|
||||
"bank": "Bankverbindung",
|
||||
"germany": "Deutschland",
|
||||
"code-of-conduct": "Verhaltenscodex",
|
||||
"termsAndConditionsCeckbox": "<a href=\"/terms-and-conditions\" target=\"_blank\">Nutzungsbedingungen</a> gelesen und verstanden",
|
||||
"termsAndConditionsNoChecked": "Bitte lies und bestätige die Nutzungsbednigungen!"
|
||||
"termsAndConditionsRead": "<a href=\"/terms-and-conditions\" target=\"_blank\">Nutzungsbedingungen</a> gelesen und verstanden",
|
||||
"confirmTermsAndConditions": "Bitte lies und bestätige die Nutzungsbednigungen!"
|
||||
},
|
||||
"sorting": {
|
||||
"newest": "Neuste",
|
||||
|
||||
@ -23,8 +23,8 @@
|
||||
"bank": "bank account",
|
||||
"germany": "Germany",
|
||||
"code-of-conduct": "Code of Conduct",
|
||||
"termsAndConditionsCeckbox": "<a href=\"/terms-and-conditions\" target=\"_blank\">Terms and conditions</a> read and understood",
|
||||
"termsAndConditionsNoChecked": "Please read and confirm the Terms and conditions!"
|
||||
"termsAndConditionsRead": "<a href=\"/terms-and-conditions\" target=\"_blank\">Terms and conditions</a> read and understood",
|
||||
"confirmTermsAndConditions": "Please read and confirm the Terms and conditions!"
|
||||
},
|
||||
"sorting": {
|
||||
"newest": "Newest",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user