Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
jovuit
funkwhale
Commits
a905a526
Verified
Commit
a905a526
authored
Aug 29, 2019
by
Eliot Berriot
Browse files
See #890: added report detail page
parent
b316b93a
Changes
2
Hide whitespace changes
Inline
Side-by-side
front/src/router/index.js
View file @
a905a526
...
...
@@ -462,6 +462,15 @@ export default new Router({
}
}
},
{
path
:
"
reports/:id
"
,
name
:
"
manage.moderation.reports.detail
"
,
component
:
()
=>
import
(
/* webpackChunkName: "admin" */
"
@/views/admin/moderation/ReportDetail
"
),
props
:
true
},
]
},
{
...
...
front/src/views/admin/moderation/ReportDetail.vue
0 → 100644
View file @
a905a526
<
template
>
<main>
<div
v-if=
"isLoading"
class=
"ui vertical segment"
>
<div
:class=
"['ui', 'centered', 'active', 'inline', 'loader']"
></div>
</div>
<template
v-if=
"object"
>
<div
class=
"ui vertical stripe segment"
>
<report-card
:obj=
"object"
></report-card>
</div>
</
template
>
</main>
</template>
<
script
>
import
axios
from
"
axios
"
import
ReportCard
from
"
@/components/manage/moderation/ReportCard
"
export
default
{
props
:
[
"
id
"
],
components
:
{
ReportCard
,
},
data
()
{
return
{
isLoading
:
true
,
object
:
null
,
}
},
created
()
{
this
.
fetchData
()
},
methods
:
{
fetchData
()
{
var
self
=
this
this
.
isLoading
=
true
let
url
=
`manage/moderation/reports/
${
this
.
id
}
/`
axios
.
get
(
url
).
then
(
response
=>
{
self
.
object
=
response
.
data
self
.
isLoading
=
false
})
},
},
}
</
script
>
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment