mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Delete shared file, because it doesn't work with jest tests
This commit is contained in:
parent
c7849cedd8
commit
f7cff9cd0b
@ -1,12 +0,0 @@
|
|||||||
export const reportReasonCategoriesDatabaseList = () => {
|
|
||||||
return [
|
|
||||||
'other', // element # zero, because it is the nutral one
|
|
||||||
'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',
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@ -50,7 +50,6 @@
|
|||||||
<script>
|
<script>
|
||||||
import { SweetalertIcon } from 'vue-sweetalert-icons'
|
import { SweetalertIcon } from 'vue-sweetalert-icons'
|
||||||
import { reportMutation } from '~/graphql/Moderation.js'
|
import { reportMutation } from '~/graphql/Moderation.js'
|
||||||
import { reportReasonCategoriesDatabaseList } from '~/../shared/moderation/report.js'
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'ReportModal',
|
name: 'ReportModal',
|
||||||
@ -63,9 +62,16 @@ export default {
|
|||||||
id: { type: String, required: true },
|
id: { type: String, required: true },
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
const reasonCategoryList = reportReasonCategoriesDatabaseList()
|
let valuesReasonCategoryOptions = [
|
||||||
// move the first element "other" to the end
|
'discrimination_etc',
|
||||||
let valuesReasonCategoryOptions = reasonCategoryList.slice(1).concat(reasonCategoryList[0])
|
'pornographic_content_links',
|
||||||
|
'glorific_trivia_of_cruel_inhuman_acts',
|
||||||
|
'doxing',
|
||||||
|
'intentional_intimidation_stalking_persecution',
|
||||||
|
'advert_products_services_commercial',
|
||||||
|
'criminal_behavior_violation_german_law',
|
||||||
|
'other',
|
||||||
|
]
|
||||||
|
|
||||||
let reasonCategoryOptions = []
|
let reasonCategoryOptions = []
|
||||||
valuesReasonCategoryOptions.forEach(reasonCategory => {
|
valuesReasonCategoryOptions.forEach(reasonCategory => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user