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
866
Issues
866
List
Boards
Labels
Service Desk
Milestones
Merge Requests
53
Merge Requests
53
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
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
ff0c90e4
Commit
ff0c90e4
authored
48 minutes ago
by
Juan Manuel Solaro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(fix) adapt code to reviews
parent
01a4158c
epic/post-scheduler
1 merge request
!494
WIP: epic/post-scheduler
Pipeline
#77146232
passed with stages
in 36 minutes and 29 seconds
Changes
6
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
15 additions
and
14 deletions
+15
-14
edit.html
src/app/modules/blogs/edit/edit.html
+1
-1
edit.ts
src/app/modules/blogs/edit/edit.ts
+5
-5
activity.html
...pp/modules/legacy/components/cards/activity/activity.html
+1
-1
activity.ts
src/app/modules/legacy/components/cards/activity/activity.ts
+3
-3
poster.component.html
src/app/modules/newsfeed/poster/poster.component.html
+1
-1
poster.component.ts
src/app/modules/newsfeed/poster/poster.component.ts
+4
-3
No files found.
src/app/modules/blogs/edit/edit.html
View file @
ff0c90e4
...
...
@@ -112,7 +112,7 @@
(validThreshold)=
"validThreshold = $event"
#thresholdInput
></m-wire-threshold-input>
<m-poster-date-selector
[date]=
"time_created"
(dateChange)=
"onTimeCreatedChange($event)"
></m-poster-date-selector>
<m-poster-date-selector
[date]=
"
blog.
time_created"
(dateChange)=
"onTimeCreatedChange($event)"
></m-poster-date-selector>
</div>
<div
class=
"mdl-cell mdl-cell--12-col m-blog-edit--metadata mdl-color-text--blue-grey-200"
*ngIf=
"blog.custom_meta"
>
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/blogs/edit/edit.ts
View file @
ff0c90e4
...
...
@@ -32,7 +32,7 @@ export class BlogEdit {
guid
:
'
new
'
,
title
:
''
,
description
:
'
<p><br></p>
'
,
time_created
:
Date
.
now
(
),
time_created
:
Math
.
floor
(
+
Date
.
now
()
/
1000
),
access_id
:
2
,
tags
:
[],
license
:
'
attribution-sharealike-cc
'
,
...
...
@@ -202,7 +202,7 @@ export class BlogEdit {
if
(
!
this
.
blog
.
license
)
this
.
blog
.
license
=
''
;
this
.
time_created
=
response
.
blog
.
time_created
||
Math
.
floor
(
+
Date
.
now
()
/
1000
);
this
.
blog
.
time_created
=
response
.
blog
.
time_created
||
Math
.
floor
(
+
Date
.
now
()
/
1000
);
}
});
}
...
...
@@ -248,7 +248,7 @@ export class BlogEdit {
blog
.
mature
=
blog
.
mature
?
1
:
0
;
blog
.
monetization
=
blog
.
monetization
?
1
:
0
;
blog
.
monetized
=
blog
.
monetized
?
1
:
0
;
blog
.
time_created
=
this
.
time_created
||
Math
.
floor
(
+
Date
.
now
()
/
1000
);
blog
.
time_created
=
blog
.
time_created
||
Math
.
floor
(
+
Date
.
now
()
/
1000
);
this
.
editing
=
false
;
this
.
inProgress
=
true
;
...
...
@@ -258,7 +258,7 @@ export class BlogEdit {
.
then
((
response
:
any
)
=>
{
this
.
inProgress
=
false
;
this
.
canSave
=
true
;
this
.
time_created
=
null
;
this
.
blog
.
time_created
=
null
;
if
(
response
.
status
!==
'
success
'
)
{
this
.
error
=
response
.
message
;
...
...
@@ -332,6 +332,6 @@ export class BlogEdit {
}
onTimeCreatedChange
(
newDate
){
this
.
time_created
=
newDate
;
this
.
blog
.
time_created
=
newDate
;
}
}
This diff is collapsed.
Click to expand it.
src/app/modules/legacy/components/cards/activity/activity.html
View file @
ff0c90e4
...
...
@@ -119,7 +119,7 @@
</ng-container>
<m-wire-threshold-input
[(threshold)]=
"activity.wire_threshold"
[(enabled)]=
"activity.paywall"
></m-wire-threshold-input>
<m-poster-date-selector
[date]=
"time_created"
(dateChange)=
"onTimeCreatedChange($event)"
></m-poster-date-selector>
<m-poster-date-selector
[date]=
"
activity.
time_created"
(dateChange)=
"onTimeCreatedChange($event)"
></m-poster-date-selector>
<button
class=
"mdl-button mdl-button--raised mdl-color--blue-grey-100"
(click)=
"messageEdit.value = activity.message; editing=false;"
i18n=
"@@M__ACTION__CANCEL"
>
Cancel
</button>
<button
class=
"mdl-button mdl-button--colored mdl-button--raised"
(click)=
"activity.message = messageEdit.value; save();"
i18n=
"@@M__ACTION__SAVE"
>
Save
</button>
</div>
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/legacy/components/cards/activity/activity.ts
View file @
ff0c90e4
...
...
@@ -173,7 +173,7 @@ export class Activity implements OnInit {
(
this
.
activity
.
remind_object
&&
this
.
translationService
.
isTranslatable
(
this
.
activity
.
remind_object
))
);
this
.
time_created
=
this
.
activity
.
time_created
||
Date
.
now
(
);
this
.
activity
.
time_created
=
this
.
activity
.
time_created
||
Math
.
floor
(
+
Date
.
now
()
/
1000
);
}
getOwnerIconTime
()
{
...
...
@@ -195,7 +195,7 @@ export class Activity implements OnInit {
console
.
log
(
'
trying to save your changes to the server
'
,
this
.
activity
);
this
.
editing
=
false
;
this
.
activity
.
edited
=
true
;
this
.
activity
.
time_created
=
this
.
time_created
||
Math
.
floor
(
+
Date
.
now
()
/
1000
);
this
.
activity
.
time_created
=
this
.
activity
.
time_created
||
Math
.
floor
(
+
Date
.
now
()
/
1000
);
let
data
=
this
.
activity
;
if
(
this
.
attachment
.
has
())
{
...
...
@@ -443,6 +443,6 @@ export class Activity implements OnInit {
}
onTimeCreatedChange
(
newDate
){
this
.
time_created
=
newDate
;
this
.
activity
.
time_created
=
newDate
;
}
}
This diff is collapsed.
Click to expand it.
src/app/modules/newsfeed/poster/poster.component.html
View file @
ff0c90e4
...
...
@@ -84,7 +84,7 @@
(validThreshold)=
"validThreshold = $event"
></m-wire-threshold-input>
<m-poster-date-selector
[date]=
"time_created"
(dateChange)=
"onTimeCreatedChange($event)"
></m-poster-date-selector>
<m-poster-date-selector
[date]=
"
meta.
time_created"
(dateChange)=
"onTimeCreatedChange($event)"
></m-poster-date-selector>
<button
type=
"submit"
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/newsfeed/poster/poster.component.ts
View file @
ff0c90e4
...
...
@@ -27,7 +27,8 @@ export class PosterComponent {
content
=
''
;
meta
:
any
=
{
message
:
''
,
wire_threshold
:
null
wire_threshold
:
null
,
time_created
:
Math
.
floor
(
+
Date
.
now
()
/
1000
)
};
tags
=
[];
minds
=
window
.
Minds
;
...
...
@@ -171,7 +172,7 @@ export class PosterComponent {
return
;
}
this
.
meta
.
time_created
=
this
.
time_created
||
Math
.
floor
(
+
Date
.
now
()
/
1000
);
this
.
meta
.
time_created
=
this
.
meta
.
time_created
||
Math
.
floor
(
+
Date
.
now
()
/
1000
);
this
.
errorMessage
=
""
;
...
...
@@ -279,6 +280,6 @@ export class PosterComponent {
}
onTimeCreatedChange
(
newDate
){
this
.
time_created
=
newDate
;
this
.
meta
.
time_created
=
newDate
;
}
}
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