Compare commits

..

2 Commits

Author SHA1 Message Date
9f57182fc1 Fixed collection sorting & paging order 2023-03-14 15:32:26 +01:00
699377be54 Added type hints #246 2023-03-14 15:32:00 +01:00
2 changed files with 8 additions and 8 deletions

View File

@ -182,10 +182,10 @@ class QueryABC(ObjectType):
if filter is not None:
collection = filter.filter(collection)
if page is not None:
collection = page.filter(collection)
if sort is not None:
collection = sort.filter(collection)
if page is not None:
collection = page.filter(collection)
return collection

View File

@ -11,15 +11,15 @@ export class HistoryBtnComponent implements OnInit {
@Input() history: History[] = [];
@Input() translationKey: string = "";
showSidebar = false;
public showSidebar: boolean = false;
constructor() {
public constructor() {
}
ngOnInit(): void {
public ngOnInit(): void {
}
openHistory(): void {
public openHistory(): void {
this.showSidebar = true;
let oldHistory: Partial<History> = {};
for (const history of this.history) {
@ -36,7 +36,7 @@ export class HistoryBtnComponent implements OnInit {
}
}
getAttributeTranslationKey(key: string) {
public getAttributeTranslationKey(key: string): string {
return `common.history.${key}`;
}