Skip to content
Next
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Minds Frontend
Project
Project
Details
Activity
Releases
Dependency List
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
796
Issues
796
List
Boards
Labels
Service Desk
Milestones
Merge Requests
61
Merge Requests
61
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Frontend
Commits
f7fe5309
Commit
f7fe5309
authored
6 hours ago
by
Mark Harding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(fix): do not show pencil icon if only need to delete
parent
c14a0032
master
epic/referrals
No related merge requests found
Pipeline
#69385823
passed with stages
in 27 minutes and 25 seconds
Changes
8
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
10 additions
and
5 deletions
+10
-5
comment.component.html
src/app/modules/comments/comment/comment.component.html
+1
-1
comment.component.ts
src/app/modules/comments/comment/comment.component.ts
+1
-0
thread.component.html
src/app/modules/comments/thread/thread.component.html
+1
-0
thread.component.ts
src/app/modules/comments/thread/thread.component.ts
+1
-0
tree.component.html
src/app/modules/comments/tree/tree.component.html
+1
-0
tree.component.ts
src/app/modules/comments/tree/tree.component.ts
+3
-2
conversation.component.html
...s/groups/profile/conversation/conversation.component.html
+1
-1
activity.html
...pp/modules/legacy/components/cards/activity/activity.html
+1
-1
No files found.
src/app/modules/comments/comment/comment.component.html
View file @
f7fe5309
...
...
@@ -58,7 +58,7 @@
<i
class=
"material-icons"
>
public
</i>
</li>
<li
class=
"m-commentRibbon__item"
*
ngIf=
"comment.owner_guid == session.getLoggedInUser()?.guid || session.isAdmin() || parent.owner_guid == session.getLoggedInUser()?.guid || can
Edit
"
*
ngIf=
"comment.owner_guid == session.getLoggedInUser()?.guid || session.isAdmin() || parent.owner_guid == session.getLoggedInUser()?.guid || can
Delete
"
(
click
)="
delete
();
toggle
.
value =
false"
title=
"Delete"
i18n-title=
"@@M__ACTION__DELETE"
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/comments/comment/comment.component.ts
View file @
f7fe5309
...
...
@@ -78,6 +78,7 @@ export class CommentComponentV2 implements OnChanges {
translateToggle
:
boolean
=
false
;
commentAge$
:
Observable
<
number
>
;
@
Input
()
canEdit
:
boolean
=
false
;
@
Input
()
canDelete
:
boolean
=
false
;
@
Output
()
onReply
=
new
EventEmitter
();
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/comments/thread/thread.component.html
View file @
f7fe5309
...
...
@@ -51,6 +51,7 @@
[
parent
]="
parent
"
[
level
]="
level
"
[
canEdit
]="
canEdit
"
[
canDelete
]="
canDelete
"
[
showReplies
]="
comment
.
show_replies
"
(
delete
)="
delete
(
i
)"
(
saved
)="
edited
(
i
,
$
event
)"
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/comments/thread/thread.component.ts
View file @
f7fe5309
...
...
@@ -33,6 +33,7 @@ export class CommentsThreadComponent {
@
Input
()
entity
;
@
Input
()
entityGuid
;
@
Input
()
canEdit
:
boolean
=
false
;
@
Input
()
canDelete
:
boolean
=
false
;
@
Input
()
readonly
:
boolean
=
false
;
@
Input
()
conversation
:
boolean
=
false
;
@
Input
()
limit
:
number
=
12
;
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/comments/tree/tree.component.html
View file @
f7fe5309
...
...
@@ -2,6 +2,7 @@
[
entity
]="
entity
"
[
parent
]="
entity
"
[
canEdit
]="
canEdit
"
[
canDelete
]="
canDelete
"
[
readonly
]="
readonly
"
[
level
]="
0
"
[
limit
]="
limit
"
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/comments/tree/tree.component.ts
View file @
f7fe5309
...
...
@@ -56,6 +56,7 @@ export class CommentsTreeComponent {
@
Input
()
scrollable
:
boolean
=
false
;
@
Input
()
readonly
:
boolean
=
false
;
@
Input
()
canEdit
:
boolean
=
false
;
@
Input
()
canDelete
:
boolean
=
false
;
private
shouldReuseRouteFn
;
...
...
@@ -89,8 +90,8 @@ export class CommentsTreeComponent {
if
(
this
.
entity
.
entity_guid
)
this
.
guid
=
this
.
entity
.
entity_guid
;
this
.
parent
=
this
.
entity
;
if
(
!
this
.
can
Edit
)
{
this
.
can
Edit
=
this
.
entity
.
owner_guid
==
this
.
session
.
getLoggedInUser
().
guid
;
if
(
!
this
.
can
Delete
)
{
this
.
can
Delete
=
this
.
entity
.
owner_guid
==
this
.
session
.
getLoggedInUser
().
guid
;
}
}
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/groups/profile/conversation/conversation.component.html
View file @
f7fe5309
...
...
@@ -4,7 +4,7 @@
[
limit
]="
24
"
[
entity
]="
group
"
[
conversation
]="
true
"
[
can
Edit
]="
group
['
is:moderator
']
||
group
['
is:creator
']"
[
can
Delete
]="
group
['
is:moderator
']
||
group
['
is:creator
']"
[
readonly
]="!
group
['
is:member
']"
[
scrollable
]="
true
"
>
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/legacy/components/cards/activity/activity.html
View file @
f7fe5309
...
...
@@ -240,7 +240,7 @@
<m-comments
__tree
*
ngIf=
"commentsToggle"
[
entity
]="
activity
"
[
can
Edit
]="
canDelete
"
[
can
Delete
]="
canDelete
"
>
</m-comments
__tree
>
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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