Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Commits on Source (3)
(fix) when editing a not scheduled post, scheduler shouldn't be selected
· 48b922aa
Juan Manuel Solaro
authored
Sep 09, 2019
48b922aa
(fix) disable scheduler for blogs that are already published
· 429780b7
Juan Manuel Solaro
authored
Sep 09, 2019
429780b7
(fix) apply prettier fixes
· 91cfb06f
Juan Manuel Solaro
authored
Sep 09, 2019
91cfb06f
Hide whitespace changes
Inline
Side-by-side
src/app/modules/blogs/edit/edit.html
View file @
91cfb06f
...
...
@@ -171,7 +171,8 @@
#thresholdInput
></m-wire-threshold-input>
<m-poster-date-selector
[date]=
"blog.time_created"
*ngIf=
"!blog.time_published"
[date]=
"getTimeCreated()"
(dateChange)=
"onTimeCreatedChange($event)"
(onError)=
"posterDateSelectorError($event)"
></m-poster-date-selector>
...
...
src/app/modules/blogs/edit/edit.ts
View file @
91cfb06f
...
...
@@ -344,4 +344,10 @@ export class BlogEdit {
onTimeCreatedChange
(
newDate
)
{
this
.
blog
.
time_created
=
newDate
;
}
getTimeCreated
()
{
return
this
.
blog
.
time_created
>
Math
.
floor
(
Date
.
now
()
/
1000
)
?
this
.
blog
.
time_created
:
null
;
}
}
src/app/modules/legacy/components/cards/activity/activity.html
View file @
91cfb06f
...
...
@@ -181,7 +181,7 @@
[(enabled)]=
"activity.paywall"
></m-wire-threshold-input>
<m-poster-date-selector
[date]=
"
activity.t
ime
_c
reated"
[date]=
"
getT
ime
C
reated
()
"
(dateChange)=
"onTimeCreatedChange($event)"
(onError)=
"posterDateSelectorError($event)"
></m-poster-date-selector>
...
...
src/app/modules/legacy/components/cards/activity/activity.ts
View file @
91cfb06f
...
...
@@ -577,4 +577,10 @@ export class Activity implements OnInit {
posterDateSelectorError
(
msg
)
{
throw
new
Error
(
msg
);
}
getTimeCreated
()
{
return
this
.
activity
.
time_created
>
Math
.
floor
(
Date
.
now
()
/
1000
)
?
this
.
activity
.
time_created
:
null
;
}
}