mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-09-01 01:46:16 +00:00
Chore: update to Angular 20 (#10273)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { Injectable } from '@angular/core'
|
||||
import { Injectable, inject } from '@angular/core'
|
||||
import {
|
||||
NgbDateParserFormatter,
|
||||
NgbDateStruct,
|
||||
@@ -7,11 +7,9 @@ import { SettingsService } from '../services/settings.service'
|
||||
|
||||
@Injectable()
|
||||
export class LocalizedDateParserFormatter extends NgbDateParserFormatter {
|
||||
private separatorRegExp: RegExp = /[\.,\/-]+/
|
||||
private settings = inject(SettingsService)
|
||||
|
||||
constructor(private settings: SettingsService) {
|
||||
super()
|
||||
}
|
||||
private separatorRegExp: RegExp = /[\.,\/-]+/
|
||||
|
||||
private getDateInputFormat() {
|
||||
return this.settings.getLocalizedDateInputFormat()
|
||||
|
Reference in New Issue
Block a user