added custom item page fields for Projects, OrgUnits and People

This commit is contained in:
Art Lowel
2018-05-28 17:22:17 +02:00
parent fdd9746f64
commit 06d2ac74be
64 changed files with 463 additions and 132 deletions

View File

@@ -14,7 +14,7 @@ import { PaginationComponentOptions } from '../pagination/pagination-component-o
import { SortDirection, SortOptions } from '../../core/cache/models/sort-options.model';
import { ListableObject } from './shared/listable-object.model';
import { ViewMode } from '../../+search-page/search-options.model';
import { SetViewMode } from '../view-mode';
import { hasValue, isNotEmpty } from '../empty.util';
@Component({
@@ -56,8 +56,8 @@ export class ObjectCollectionComponent implements OnChanges, OnInit {
*/
@Output() sortFieldChange: EventEmitter<string> = new EventEmitter<string>();
data: any = {};
currentMode: ViewMode = ViewMode.List;
viewModeEnum = ViewMode;
currentMode: SetViewMode = SetViewMode.List;
viewModeEnum = SetViewMode;
ngOnChanges(changes: SimpleChanges) {
if (changes.objects && !changes.objects.isFirstChange()) {
@@ -87,7 +87,7 @@ export class ObjectCollectionComponent implements OnChanges, OnInit {
private router: Router) {
}
getViewMode(): ViewMode {
getViewMode(): SetViewMode {
this.route.queryParams.map((params) => {
if (isNotEmpty(params.view) && hasValue(params.view)) {
this.currentMode = params.view;