mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
- disable button if form.reasonCategory is falsy - extract valuesReasonCategoryOptions to global constant - extract reasonCategoryOptions to created lifecycle hook to keep data() clean and use map - extract formSchema to components/utils and test - remove validator from formSchema and validate based on "Deep Rules" https://github.com/yiminghe/async-validator#deep-rules - Use v-model to update reasonCategory and reasonDescription - default to error message in English from backend - Update template slot to use new syntax
12 lines
402 B
JavaScript
12 lines
402 B
JavaScript
// this list equals to enums in GraphQL schema file "backend/src/schema/types/type/REPORTED.gql"
|
|
export const valuesReasonCategoryOptions = [
|
|
'discrimination_etc',
|
|
'pornographic_content_links',
|
|
'glorific_trivia_of_cruel_inhuman_acts',
|
|
'doxing',
|
|
'intentional_intimidation_stalking_persecution',
|
|
'advert_products_services_commercial',
|
|
'criminal_behavior_violation_german_law',
|
|
'other',
|
|
]
|