mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-06-09 17:44:59 +00:00
made type 'date' as default and removed the settings coming from the ACA
This commit is contained in:
parent
22651fd68f
commit
ed593b7b49
@ -27,9 +27,6 @@ import { MAT_DIALOG_DATA, MatDialog, MatDialogRef } from '@angular/material/dial
|
|||||||
import { MatSlideToggleChange } from '@angular/material/slide-toggle';
|
import { MatSlideToggleChange } from '@angular/material/slide-toggle';
|
||||||
import { UntypedFormGroup, UntypedFormControl, AbstractControl } from '@angular/forms';
|
import { UntypedFormGroup, UntypedFormControl, AbstractControl } from '@angular/forms';
|
||||||
import { Subject } from 'rxjs';
|
import { Subject } from 'rxjs';
|
||||||
import {
|
|
||||||
AppConfigService
|
|
||||||
} from '@alfresco/adf-core';
|
|
||||||
import { ContentService } from '../common/services/content.service';
|
import { ContentService } from '../common/services/content.service';
|
||||||
|
|
||||||
import { SharedLinksApiService } from './services/shared-links-api.service';
|
import { SharedLinksApiService } from './services/shared-links-api.service';
|
||||||
@ -75,7 +72,6 @@ export class ShareDialogComponent implements OnInit, OnDestroy {
|
|||||||
private onDestroy$ = new Subject<boolean>();
|
private onDestroy$ = new Subject<boolean>();
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private appConfigService: AppConfigService,
|
|
||||||
private sharedLinksApiService: SharedLinksApiService,
|
private sharedLinksApiService: SharedLinksApiService,
|
||||||
private dialogRef: MatDialogRef<ShareDialogComponent>,
|
private dialogRef: MatDialogRef<ShareDialogComponent>,
|
||||||
private dialog: MatDialog,
|
private dialog: MatDialog,
|
||||||
@ -86,8 +82,6 @@ export class ShareDialogComponent implements OnInit, OnDestroy {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
this.type = this.appConfigService.get<DatePickerType>('sharedLinkDateTimePickerType', 'date');
|
|
||||||
|
|
||||||
if (this.data.node && this.data.node.entry) {
|
if (this.data.node && this.data.node.entry) {
|
||||||
this.fileName = this.data.node.entry.name;
|
this.fileName = this.data.node.entry.name;
|
||||||
this.baseShareUrl = this.data.baseShareUrl;
|
this.baseShareUrl = this.data.baseShareUrl;
|
||||||
|
@ -23,6 +23,7 @@ export class DateTimePickerPage {
|
|||||||
|
|
||||||
rootElement: ElementFinder;
|
rootElement: ElementFinder;
|
||||||
dateTimePicker = $('.mat-datetimepicker-toggle');
|
dateTimePicker = $('.mat-datetimepicker-toggle');
|
||||||
|
datePicker = $('.mat-datepicker-toggle');
|
||||||
dateTime = new DateTimePickerCalendarPage();
|
dateTime = new DateTimePickerCalendarPage();
|
||||||
|
|
||||||
constructor(rootElement?: ElementFinder) {
|
constructor(rootElement?: ElementFinder) {
|
||||||
@ -51,7 +52,7 @@ export class DateTimePickerPage {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async clickDateTimePicker(): Promise<void> {
|
async clickDateTimePicker(): Promise<void> {
|
||||||
await BrowserActions.click(this.dateTimePicker);
|
await BrowserActions.click(this.datePicker);
|
||||||
}
|
}
|
||||||
|
|
||||||
async checkCalendarTodayDayIsDisabled(): Promise<void> {
|
async checkCalendarTodayDayIsDisabled(): Promise<void> {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user