mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-13 10:07:15 +01:00
refactor constant
This commit is contained in:
parent
d1e10754a5
commit
2d974bc026
2 changed files with 12 additions and 13 deletions
|
|
@ -3,7 +3,7 @@ import { ActivatedRoute, Router } from '@angular/router';
|
|||
import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
|
||||
import { cloneFilterRules, FilterRule } from 'src/app/data/filter-rule';
|
||||
import { SavedViewConfig } from 'src/app/data/saved-view-config';
|
||||
import { DocumentListViewService } from 'src/app/services/document-list-view.service';
|
||||
import { DocumentListViewService, SORT_FIELDS } from 'src/app/services/document-list-view.service';
|
||||
import { SavedViewConfigService } from 'src/app/services/saved-view-config.service';
|
||||
import { SaveViewConfigDialogComponent } from './save-view-config-dialog/save-view-config-dialog.component';
|
||||
|
||||
|
|
@ -26,7 +26,7 @@ export class DocumentListComponent implements OnInit {
|
|||
showFilter = false
|
||||
|
||||
getSortFields() {
|
||||
return DocumentListViewService.SORT_FIELDS
|
||||
return SORT_FIELDS
|
||||
}
|
||||
|
||||
setSort(field: string) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue