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
863
Issues
863
List
Boards
Labels
Service Desk
Milestones
Merge Requests
50
Merge Requests
50
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
3fa631c7
Commit
3fa631c7
authored
3 hours ago
by
Juan Manuel Solaro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(fix) minor view fixes
parent
8aa592f5
epic/post-scheduler
1 merge request
!494
WIP: epic/post-scheduler
Pipeline
#77550707
passed with stages
in 45 minutes and 27 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
poster-date-selector.component.ts
...ts/poster-date-selector/poster-date-selector.component.ts
+5
-3
sort-selector.component.scss
...mon/components/sort-selector/sort-selector.component.scss
+5
-0
No files found.
src/app/common/components/poster-date-selector/poster-date-selector.component.ts
View file @
3fa631c7
...
...
@@ -7,7 +7,7 @@ import { DatePipe } from '@angular/common';
template
:
`
<div class="m-poster-date-selector--input" [class.selected]="hasDateSelected()" mdl-datetime-picker [date]="date" (dateChange)="onDateChange($event)">
<input type="text" [ngModel]="date | date:dateFormat" (ngModelChange)="onDateChange($event)" [hidden]="true">
<m-tooltip icon="date_range"> {{
d
ate || 'now'}} </m-tooltip>
<m-tooltip icon="date_range"> {{
tooltipD
ate || 'now'}} </m-tooltip>
<span></span>
</div>
...
...
@@ -21,14 +21,16 @@ export class PosterDateSelectorComponent {
@
Input
()
dateFormat
:
string
=
'
short
'
;
tooltipDate
:
string
;
onDateChange
(
newDate
)
{
this
.
date
=
newDate
;
this
.
date
=
this
.
tooltipDate
=
newDate
;
newDate
=
new
Date
(
newDate
).
getTime
();
newDate
=
Math
.
floor
(
+
newDate
/
1000
);
this
.
dateChange
.
emit
(
newDate
);
}
hasDateSelected
()
{
return
this
.
date
&&
this
.
d
ate
!==
''
;
return
this
.
tooltipDate
&&
this
.
tooltipD
ate
!==
''
;
}
}
This diff is collapsed.
Click to expand it.
src/app/common/components/sort-selector/sort-selector.component.scss
View file @
3fa631c7
m-sort-selector
{
display
:
flex
;
flex-direction
:
row
;
align-items
:
center
;
max-width
:
100%
;
>
:last-child
{
margin-left
:
auto
;
}
...
...
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