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
892
Issues
892
List
Boards
Labels
Service Desk
Milestones
Merge Requests
49
Merge Requests
49
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
15fec4f5
Commit
15fec4f5
authored
2 hours ago
by
Juan Manuel Solaro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(fix) show scheduled banner to just posted activities
parent
87a46b50
epic/post-scheduler
1 merge request
!494
WIP: epic/post-scheduler
Pipeline
#80012520
passed with stages
in 56 minutes and 46 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
0 deletions
+20
-0
activity.html
...pp/modules/legacy/components/cards/activity/activity.html
+8
-0
activity.ts
src/app/modules/legacy/components/cards/activity/activity.ts
+4
-0
preview.ts
src/app/modules/legacy/components/cards/activity/preview.ts
+4
-0
remind.ts
src/app/modules/legacy/components/cards/remind/remind.ts
+4
-0
No files found.
src/app/modules/legacy/components/cards/activity/activity.html
View file @
15fec4f5
...
...
@@ -516,3 +516,11 @@
>
This post is awaiting moderation.
</div>
<!-- Pending block -->
<div
class=
"mdl-card__supporting-text m-activity--pending"
*ngIf=
"isScheduled(activity.time_created)"
>
This is a scheduled post.
</div>
This diff is collapsed.
Click to expand it.
src/app/modules/legacy/components/cards/activity/activity.ts
View file @
15fec4f5
...
...
@@ -485,6 +485,10 @@ export class Activity implements OnInit {
return
activity
&&
activity
.
pending
&&
activity
.
pending
!==
'
0
'
;
}
isScheduled
(
time_created
)
{
return
time_created
&&
time_created
*
1000
>
Date
.
now
();
}
toggleMatureVisibility
()
{
this
.
activity
.
mature_visibility
=
!
this
.
activity
.
mature_visibility
;
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/legacy/components/cards/activity/preview.ts
View file @
15fec4f5
...
...
@@ -76,6 +76,10 @@ export class ActivityPreview {
return
false
;
}
isScheduled
(
time_created
)
{
return
false
;
}
save
()
{
/* NOOP */
}
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/legacy/components/cards/remind/remind.ts
View file @
15fec4f5
...
...
@@ -138,6 +138,10 @@ export class Remind {
return
activity
&&
activity
.
pending
&&
activity
.
pending
!==
'
0
'
;
}
isScheduled
(
time_created
)
{
return
false
;
}
openComments
()
{
/* NOOP */
}
...
...
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