mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
move creation day form external class const to not be saved from the "optimization"
This commit is contained in:
@@ -19,11 +19,6 @@ import { DateAdapter } from '@angular/material';
|
||||
import { isMoment, Moment } from 'moment';
|
||||
import moment from 'moment-es6';
|
||||
|
||||
const dateNames: string[] = [];
|
||||
for (let date = 1; date <= 31; date++) {
|
||||
dateNames.push(String(date));
|
||||
}
|
||||
|
||||
export class MomentDateAdapter extends DateAdapter<Moment> {
|
||||
|
||||
private localeData: any = moment.localeData();
|
||||
@@ -60,6 +55,11 @@ export class MomentDateAdapter extends DateAdapter<Moment> {
|
||||
}
|
||||
|
||||
getDateNames(): string[] {
|
||||
const dateNames: string[] = [];
|
||||
for (let date = 1; date <= 31; date++) {
|
||||
dateNames.push(String(date));
|
||||
}
|
||||
|
||||
return dateNames;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user