removed dead code
This commit is contained in:
parent
1a920f88b2
commit
40455e24b6
@ -33,7 +33,6 @@ import { NgpSortModule } from 'ngp-sort-pipe';
|
|||||||
import { MatFormFieldModule } from '@angular/material/form-field';
|
import { MatFormFieldModule } from '@angular/material/form-field';
|
||||||
import { MatSelectModule } from '@angular/material/select';
|
import { MatSelectModule } from '@angular/material/select';
|
||||||
import { MatSidenavModule } from '@angular/material/sidenav';
|
import { MatSidenavModule } from '@angular/material/sidenav';
|
||||||
import { FileDetailsDialogComponent } from './dialogs/file-details-dialog/file-details-dialog.component';
|
|
||||||
import { ToastrModule } from 'ngx-toastr';
|
import { ToastrModule } from 'ngx-toastr';
|
||||||
import { ServiceWorkerModule } from '@angular/service-worker';
|
import { ServiceWorkerModule } from '@angular/service-worker';
|
||||||
import { environment } from '../environments/environment';
|
import { environment } from '../environments/environment';
|
||||||
@ -244,7 +243,6 @@ const matImports = [
|
|||||||
ConfirmationDialogComponent,
|
ConfirmationDialogComponent,
|
||||||
FilePreviewScreenComponent,
|
FilePreviewScreenComponent,
|
||||||
PdfViewerComponent,
|
PdfViewerComponent,
|
||||||
FileDetailsDialogComponent,
|
|
||||||
AssignOwnerDialogComponent,
|
AssignOwnerDialogComponent,
|
||||||
FullPageLoadingIndicatorComponent,
|
FullPageLoadingIndicatorComponent,
|
||||||
InitialsAvatarComponent,
|
InitialsAvatarComponent,
|
||||||
|
|||||||
@ -36,14 +36,6 @@ export class DialogService {
|
|||||||
private readonly _manualRedactionControllerService: ManualRedactionControllerService
|
private readonly _manualRedactionControllerService: ManualRedactionControllerService
|
||||||
) {}
|
) {}
|
||||||
|
|
||||||
public openFileDetailsDialog($event: MouseEvent, file: FileStatus): MatDialogRef<FileDetailsDialogComponent> {
|
|
||||||
$event.stopPropagation();
|
|
||||||
return this._dialog.open(FileDetailsDialogComponent, {
|
|
||||||
...dialogConfig,
|
|
||||||
data: file
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
public openDeleteFilesDialog($event: MouseEvent, projectId: string, fileIds: string[], cb?: Function): MatDialogRef<ConfirmationDialogComponent> {
|
public openDeleteFilesDialog($event: MouseEvent, projectId: string, fileIds: string[], cb?: Function): MatDialogRef<ConfirmationDialogComponent> {
|
||||||
$event?.stopPropagation();
|
$event?.stopPropagation();
|
||||||
|
|
||||||
|
|||||||
@ -1,32 +0,0 @@
|
|||||||
<section class="dialog">
|
|
||||||
<div [translate]="'file-details.dialog.title'" class="dialog-header heading-l"></div>
|
|
||||||
|
|
||||||
<div class="dialog-content">
|
|
||||||
<div class="file-details">
|
|
||||||
<div class="detail-row">
|
|
||||||
{{ fileStatus.filename }}
|
|
||||||
</div>
|
|
||||||
<div class="detail-row">
|
|
||||||
{{ 'project-overview.file-listing.file-entry.status' | translate: fileStatus }}
|
|
||||||
</div>
|
|
||||||
<div class="detail-row">
|
|
||||||
{{ 'project-overview.file-listing.file-entry.number-of-pages' | translate: fileStatus }}
|
|
||||||
</div>
|
|
||||||
<div class="detail-row">
|
|
||||||
{{ 'project-overview.file-listing.file-entry.number-of-analyses' | translate: fileStatus }}
|
|
||||||
</div>
|
|
||||||
<div class="detail-row">
|
|
||||||
{{ 'project-overview.file-listing.file-entry.added' | translate: { added: fileStatus.added | date: 'short' } }}
|
|
||||||
</div>
|
|
||||||
<div *ngIf="fileStatus.lastUpdated" class="detail-row">
|
|
||||||
{{ 'project-overview.file-listing.file-entry.last-updated' | translate: { lastUpdated: fileStatus.lastUpdated | date: 'short' } }}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="dialog-actions">
|
|
||||||
<button (click)="downloadRedactionReport()" color="primary" mat-flat-button translate="file-details.dialog.actions.download-redaction-report"></button>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<redaction-circle-button icon="red:close" mat-dialog-close class="dialog-close"></redaction-circle-button>
|
|
||||||
</section>
|
|
||||||
@ -1 +0,0 @@
|
|||||||
@import '../../../assets/styles/red-variables';
|
|
||||||
@ -1,23 +0,0 @@
|
|||||||
import { Component, Inject, OnInit } from '@angular/core';
|
|
||||||
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
|
|
||||||
import { AppStateService } from '../../state/app-state.service';
|
|
||||||
import { FileStatusWrapper } from '../../screens/file/model/file-status.wrapper';
|
|
||||||
|
|
||||||
@Component({
|
|
||||||
selector: 'redaction-file-details-dialog',
|
|
||||||
templateUrl: './file-details-dialog.component.html',
|
|
||||||
styleUrls: ['./file-details-dialog.component.scss']
|
|
||||||
})
|
|
||||||
export class FileDetailsDialogComponent implements OnInit {
|
|
||||||
constructor(
|
|
||||||
private readonly _appStateService: AppStateService,
|
|
||||||
public dialogRef: MatDialogRef<FileDetailsDialogComponent>,
|
|
||||||
@Inject(MAT_DIALOG_DATA) public fileStatus: FileStatusWrapper
|
|
||||||
) {}
|
|
||||||
|
|
||||||
ngOnInit(): void {}
|
|
||||||
|
|
||||||
downloadRedactionReport() {
|
|
||||||
this._appStateService.downloadFileRedactionReport(this.fileStatus);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -68,7 +68,7 @@ export class ManualAnnotationDialogComponent implements OnInit {
|
|||||||
|
|
||||||
for (const key of Object.keys(this._appStateService.dictionaryData)) {
|
for (const key of Object.keys(this._appStateService.dictionaryData)) {
|
||||||
const dictionaryData = this._appStateService.dictionaryData[key];
|
const dictionaryData = this._appStateService.dictionaryData[key];
|
||||||
if (!dictionaryData.virtual) {
|
if (!dictionaryData.virtual && !(dictionaryData.type.indexOf('recommendation_') === 0)) {
|
||||||
if (dictionaryData.hint) {
|
if (dictionaryData.hint) {
|
||||||
this.hintDictionaries.push(dictionaryData);
|
this.hintDictionaries.push(dictionaryData);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user