Fakultas Ilmu Komputer UI
Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Functional Programming
Diskuy-Backend
Commits
dc8ffd0f
Commit
dc8ffd0f
authored
Jan 13, 2021
by
ryoaxton2000
Browse files
fix delete comment button not showing
parent
d444074d
Changes
1
Hide whitespace changes
Inline
Side-by-side
diskuy/src/Threads/Post.js
View file @
dc8ffd0f
...
...
@@ -64,14 +64,17 @@ export default function Post(props){
<
/div
>
<
/div
>
{
props
.
isUsersThread
&&
(
<
div
id
=
"
headerButton
"
>
<
div
className
=
"
buttonContainer
"
>
<
div
id
=
"
headerButton
"
>
<
div
className
=
"
buttonContainer
"
>
{
props
.
isUsersThread
&&
(
<
Button
type
=
"
button
"
text
=
"
Edit
"
color
=
"
none-green
"
url
=
{
`thread/edit/
${
props
.
id
}
`
}
/
>
)}
{
props
.
user_id
==
AuthService
.
getCurrentUserId
()
&&
(
<
button
type
=
"
button
"
className
=
"
deleteButton
"
onClick
=
{
deletePost
}
>
Delete
<
/button
>
<
/div
>
)}
<
/div
>
)}
<
/div
>
<
/div
>
<
div
id
=
"
postContent
"
>
{
props
.
type
==
"
thread
"
&&
(
...
...
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