mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2026-04-06 01:25:31 +00:00
Remove out commented code
This commit is contained in:
parent
0062725470
commit
4f3f192e12
@ -9,13 +9,6 @@
|
|||||||
<!-- eslint-disable-next-line vue/no-v-html -->
|
<!-- eslint-disable-next-line vue/no-v-html -->
|
||||||
<p v-html="message" />
|
<p v-html="message" />
|
||||||
|
|
||||||
<!-- Wolle <ds-form ref="reportForm" v-model="form" :schema="formSchema"> -->
|
|
||||||
<!-- Wolle <ds-radio
|
|
||||||
model="reasonCategory"
|
|
||||||
:label="$t('report.reason.category.label')"
|
|
||||||
:options="form.reasonCategoryOptions"
|
|
||||||
:placeholder="$t('report.reason.category.placeholder')"
|
|
||||||
/> -->
|
|
||||||
<ds-radio
|
<ds-radio
|
||||||
:value="form.reasonCategory"
|
:value="form.reasonCategory"
|
||||||
:schema="formSchema.reasonCategory"
|
:schema="formSchema.reasonCategory"
|
||||||
@ -23,14 +16,6 @@
|
|||||||
:options="form.reasonCategoryOptions"
|
:options="form.reasonCategoryOptions"
|
||||||
labelProp="label"
|
labelProp="label"
|
||||||
/>
|
/>
|
||||||
<!-- Wolle <ds-input
|
|
||||||
model="reasonDescription"
|
|
||||||
:label="$t('report.reason.description.label')"
|
|
||||||
:placeholder="$t('report.reason.description.placeholder')"
|
|
||||||
type="textarea"
|
|
||||||
rows="5"
|
|
||||||
class="reason-description"
|
|
||||||
/> -->
|
|
||||||
<ds-input
|
<ds-input
|
||||||
class="reason-description"
|
class="reason-description"
|
||||||
:value="form.reasonDescription"
|
:value="form.reasonDescription"
|
||||||
@ -44,7 +29,6 @@
|
|||||||
{{ form.reasonDescription.length }}/{{ formSchema.reasonDescription.max }}
|
{{ form.reasonDescription.length }}/{{ formSchema.reasonDescription.max }}
|
||||||
</small>
|
</small>
|
||||||
<ds-space />
|
<ds-space />
|
||||||
<!-- Wolle </ds-form> -->
|
|
||||||
|
|
||||||
<template slot="footer">
|
<template slot="footer">
|
||||||
<ds-button class="cancel" icon="close" @click="cancel">{{ $t('report.cancel') }}</ds-button>
|
<ds-button class="cancel" icon="close" @click="cancel">{{ $t('report.cancel') }}</ds-button>
|
||||||
@ -103,7 +87,6 @@ export default {
|
|||||||
failsValidations: true,
|
failsValidations: true,
|
||||||
form: {
|
form: {
|
||||||
reasonCategory: null,
|
reasonCategory: null,
|
||||||
// Wolle reasonCategory: reasonCategoryOptions[0],
|
|
||||||
reasonCategoryOptions,
|
reasonCategoryOptions,
|
||||||
reasonDescription: '',
|
reasonDescription: '',
|
||||||
},
|
},
|
||||||
@ -112,11 +95,8 @@ export default {
|
|||||||
type: 'enum',
|
type: 'enum',
|
||||||
required: true,
|
required: true,
|
||||||
validator: (rule, value, callback, source, options) => {
|
validator: (rule, value, callback, source, options) => {
|
||||||
// Wolle console.log('value: ', value)
|
|
||||||
this.form.reasonCategory = value
|
this.form.reasonCategory = value
|
||||||
// Wolle console.log('this.form.reasonCategory: ', this.form.reasonCategory)
|
|
||||||
this.failsValidations = !this.form.reasonCategory
|
this.failsValidations = !this.form.reasonCategory
|
||||||
// Wolle console.log('this.failsValidations: ', this.failsValidations)
|
|
||||||
callback()
|
callback()
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -142,15 +122,6 @@ export default {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// Wolle toggleReasonCategory(reasonCategory) {
|
|
||||||
// console.log('reasonCategory: ', reasonCategory)
|
|
||||||
// console.log('this.form.reasonCategory: ', this.form.reasonCategory)
|
|
||||||
// this.failsValidations = false
|
|
||||||
// },
|
|
||||||
// Wolle inputReasonAddText(reasonDescription) {
|
|
||||||
// console.log('reasonDescription: ', reasonDescription)
|
|
||||||
// this.form.reasonDescription = reasonDescription
|
|
||||||
// },
|
|
||||||
async cancel() {
|
async cancel() {
|
||||||
// TODO: Use the "modalData" structure introduced in "ConfirmModal" and refactor this here. Be aware that all the Jest tests have to be refactored as well !!!
|
// TODO: Use the "modalData" structure introduced in "ConfirmModal" and refactor this here. Be aware that all the Jest tests have to be refactored as well !!!
|
||||||
// await this.modalData.buttons.cancel.callback()
|
// await this.modalData.buttons.cancel.callback()
|
||||||
@ -161,8 +132,6 @@ export default {
|
|||||||
},
|
},
|
||||||
async confirm() {
|
async confirm() {
|
||||||
const { reasonCategory, reasonDescription } = this.form
|
const { reasonCategory, reasonDescription } = this.form
|
||||||
// Wolle console.log('reasonCategory: ', reasonCategory.value)
|
|
||||||
// Wolle console.log('reasonDescription: ', reasonDescription)
|
|
||||||
|
|
||||||
this.loading = true
|
this.loading = true
|
||||||
// TODO: Use the "modalData" structure introduced in "ConfirmModal" and refactor this here. Be aware that all the Jest tests have to be refactored as well !!!
|
// TODO: Use the "modalData" structure introduced in "ConfirmModal" and refactor this here. Be aware that all the Jest tests have to be refactored as well !!!
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user