Pooled task thumb and unused imports.

This commit is contained in:
Michael Spalti
2022-09-11 14:49:02 -07:00
parent b692fa5924
commit 989d243c8e
4 changed files with 12 additions and 3 deletions

View File

@@ -8,7 +8,6 @@ import {
} from '../../../../../shared/object-list/search-result-list-element/item-search-result/item-types/item/item-search-result-list-element.component';
import { TruncatableService } from '../../../../../shared/truncatable/truncatable.service';
import { DSONameService } from '../../../../../core/breadcrumbs/dso-name.service';
import { environment } from '../../../../../../environments/environment';
import { APP_CONFIG, AppConfig } from '../../../../../../config/app-config.interface';
@listableObjectComponent('PersonSearchResult', ViewMode.ListElement)

View File

@@ -4,5 +4,10 @@
[object]="object"
[showSubmitter]="showSubmitter"
[status]="status"></ds-themed-item-list-preview>
<ds-pool-task-actions id="actions" *ngIf="workflowitem" [object]="dso" (processCompleted)="this.reloadedObject.emit($event.reloadedObject)"></ds-pool-task-actions>
<div class="row">
<div [ngClass]="showThumbnails ? 'offset-md-2 pl-3' : ''">
<ds-pool-task-actions id="actions" *ngIf="workflowitem" [object]="dso"
(processCompleted)="this.reloadedObject.emit($event.reloadedObject)"></ds-pool-task-actions>
</div>
</div>
</ng-container>

View File

@@ -48,6 +48,11 @@ export class PoolSearchResultListElementComponent extends SearchResultListElemen
*/
public index: number;
/**
* Display thumbnails if required by configuration
*/
showThumbnails: boolean;
constructor(
protected linkService: LinkService,
protected truncatableService: TruncatableService,
@@ -66,6 +71,7 @@ export class PoolSearchResultListElementComponent extends SearchResultListElemen
followLink('item'), followLink('submitter')
), followLink('action'));
this.workflowitemRD$ = this.dso.workflowitem as Observable<RemoteData<WorkflowItem>>;
this.showThumbnails = this.appConfig.browseBy.showItemThumbnails;
}
}

View File

@@ -12,7 +12,6 @@ import { followLink } from '../../utils/follow-link-config.model';
import { RemoteData } from '../../../core/data/remote-data';
import { Context } from '../../../core/shared/context.model';
import { DSONameService } from '../../../core/breadcrumbs/dso-name.service';
import { APP_CONFIG, AppConfig } from '../../../../config/app-config.interface';
@Component({
selector: 'ds-sidebar-search-list-element',