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
897
Issues
897
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
418f799b
Commit
418f799b
authored
2 hours ago
by
Juan Manuel Solaro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(fix) introduce method to check time_published
parent
91cfb06f
epic/post-scheduler
1 merge request
!494
WIP: epic/post-scheduler
Pipeline
#81172071
passed with stages
in 50 minutes and 54 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
edit.html
src/app/modules/blogs/edit/edit.html
+1
-1
edit.ts
src/app/modules/blogs/edit/edit.ts
+7
-0
No files found.
src/app/modules/blogs/edit/edit.html
View file @
418f799b
...
...
@@ -171,7 +171,7 @@
#thresholdInput
></m-wire-threshold-input>
<m-poster-date-selector
*ngIf=
"
!blog.time_published
"
*ngIf=
"
checkTimePublished()
"
[date]=
"getTimeCreated()"
(dateChange)=
"onTimeCreatedChange($event)"
(onError)=
"posterDateSelectorError($event)"
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/blogs/edit/edit.ts
View file @
418f799b
...
...
@@ -350,4 +350,11 @@ export class BlogEdit {
?
this
.
blog
.
time_created
:
null
;
}
checkTimePublished
()
{
return
(
!
this
.
blog
.
time_published
||
this
.
blog
.
time_published
>
Math
.
floor
(
Date
.
now
()
/
1000
)
);
}
}
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