mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
datetime picker pass only date (#725)
This commit is contained in:
committed by
Adina Parpalita
parent
30bf5f03da
commit
bf3488a197
@@ -56,7 +56,7 @@
|
||||
</mat-datetimepicker-toggle>
|
||||
<mat-datetimepicker #datetimePicker
|
||||
(closed)="onDatetimepickerClosed()"
|
||||
type="datetime" openOnFocus="true"
|
||||
type="date" openOnFocus="true"
|
||||
timeInterval="1">
|
||||
</mat-datetimepicker>
|
||||
<input class="adf-share-link__input"
|
||||
|
@@ -217,7 +217,12 @@ export class ShareDialogComponent implements OnInit, OnDestroy {
|
||||
private updateNode(date: moment.Moment): Observable<MinimalNodeEntryEntity> {
|
||||
return this.nodesApiService.updateNode(this.data.node.entry.id, {
|
||||
properties: {
|
||||
'qshare:expiryDate': date ? date.utc().format() : null
|
||||
'qshare:expiryDate': date
|
||||
? date
|
||||
.utc()
|
||||
.endOf('day')
|
||||
.format()
|
||||
: null
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user