made type 'date' as default and removed the settings coming from the ACA

This commit is contained in:
Jatin_Chugh 2023-06-05 15:56:55 +05:30
parent 22651fd68f
commit ed593b7b49
2 changed files with 2 additions and 7 deletions

View File

@ -27,9 +27,6 @@ import { MAT_DIALOG_DATA, MatDialog, MatDialogRef } from '@angular/material/dial
import { MatSlideToggleChange } from '@angular/material/slide-toggle';
import { UntypedFormGroup, UntypedFormControl, AbstractControl } from '@angular/forms';
import { Subject } from 'rxjs';
import {
AppConfigService
} from '@alfresco/adf-core';
import { ContentService } from '../common/services/content.service';
import { SharedLinksApiService } from './services/shared-links-api.service';
@ -75,7 +72,6 @@ export class ShareDialogComponent implements OnInit, OnDestroy {
private onDestroy$ = new Subject<boolean>();
constructor(
private appConfigService: AppConfigService,
private sharedLinksApiService: SharedLinksApiService,
private dialogRef: MatDialogRef<ShareDialogComponent>,
private dialog: MatDialog,
@ -86,8 +82,6 @@ export class ShareDialogComponent implements OnInit, OnDestroy {
}
ngOnInit() {
this.type = this.appConfigService.get<DatePickerType>('sharedLinkDateTimePickerType', 'date');
if (this.data.node && this.data.node.entry) {
this.fileName = this.data.node.entry.name;
this.baseShareUrl = this.data.baseShareUrl;

View File

@ -23,6 +23,7 @@ export class DateTimePickerPage {
rootElement: ElementFinder;
dateTimePicker = $('.mat-datetimepicker-toggle');
datePicker = $('.mat-datepicker-toggle');
dateTime = new DateTimePickerCalendarPage();
constructor(rootElement?: ElementFinder) {
@ -51,7 +52,7 @@ export class DateTimePickerPage {
}
async clickDateTimePicker(): Promise<void> {
await BrowserActions.click(this.dateTimePicker);
await BrowserActions.click(this.datePicker);
}
async checkCalendarTodayDayIsDisabled(): Promise<void> {