Skip to content
Next
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Minds Frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
869
Issues
869
List
Boards
Labels
Service Desk
Milestones
Merge Requests
46
Merge Requests
46
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Security & Compliance
Security & Compliance
Dependency List
Packages
Packages
List
Container Registry
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
143d0292
Commit
143d0292
authored
43 minutes ago
by
Marcelo Rivera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(fix): more explicit types
parent
9d526914
epic/permissions-28
1 merge request
!581
WIP: Permissions
Pipeline
#87368515
running with stages
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
5 deletions
+5
-5
src/app/common/components/thumbs/thumbs-down.component.ts
src/app/common/components/thumbs/thumbs-down.component.ts
+1
-1
src/app/common/components/thumbs/thumbs-up.component.ts
src/app/common/components/thumbs/thumbs-up.component.ts
+1
-1
src/app/modules/legacy/components/buttons/remind.ts
src/app/modules/legacy/components/buttons/remind.ts
+1
-1
src/app/modules/newsfeed/poster/poster.component.ts
src/app/modules/newsfeed/poster/poster.component.ts
+1
-1
src/app/modules/settings/disable/disable.component.ts
src/app/modules/settings/disable/disable.component.ts
+1
-1
No files found.
src/app/common/components/thumbs/thumbs-down.component.ts
View file @
143d0292
...
...
@@ -57,7 +57,7 @@ export class ThumbsDownButton implements DoCheck {
this
.
checkPermissions
();
}
private
checkPermissions
()
{
private
checkPermissions
()
:
void
{
if
(
this
.
featuresService
.
has
(
'
permissions
'
))
{
this
.
enabled
=
this
.
permissionsService
.
canInteract
(
this
.
object
,
...
...
This diff is collapsed.
Click to expand it.
src/app/common/components/thumbs/thumbs-up.component.ts
View file @
143d0292
...
...
@@ -63,7 +63,7 @@ export class ThumbsUpButton implements DoCheck, OnChanges {
this
.
checkPermissions
();
}
private
checkPermissions
()
{
private
checkPermissions
()
:
void
{
if
(
this
.
featuresService
.
has
(
'
permissions
'
))
{
this
.
enabled
=
this
.
permissionsService
.
canInteract
(
this
.
object
,
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/legacy/components/buttons/remind.ts
View file @
143d0292
...
...
@@ -54,7 +54,7 @@ export class RemindButton {
enabled
:
boolean
=
true
;
private
checkPermissions
()
{
private
checkPermissions
()
:
void
{
if
(
this
.
featuresService
.
has
(
'
permissions
'
))
{
this
.
enabled
=
this
.
permissionsService
.
canInteract
(
this
.
object
,
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/newsfeed/poster/poster.component.ts
View file @
143d0292
...
...
@@ -308,7 +308,7 @@ export class PosterComponent {
this
.
errorMessage
=
msg
;
}
private
checkPermissions
()
{
private
checkPermissions
()
:
void
{
// check whether we're posting to a group or a channel
const
entity
:
any
=
this
.
container
?
this
.
container
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/settings/disable/disable.component.ts
View file @
143d0292
...
...
@@ -76,7 +76,7 @@ export class SettingsDisableChannelComponent implements OnInit {
creator
.
present
();
}
private
checkPermissions
()
{
private
checkPermissions
()
:
void
{
if
(
this
.
featuresService
.
has
(
'
permissions
'
))
{
this
.
enabled
=
this
.
permissionsService
.
canInteract
(
this
.
session
.
getLoggedInUser
(),
...
...
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