api updates
This commit is contained in:
parent
f099a50d15
commit
e074340aad
@ -61,6 +61,7 @@ import { MatInputModule } from '@angular/material/input';
|
||||
import { ProjectMemberGuard } from './auth/project-member-guard.service';
|
||||
import { HumanizePipe } from './utils/humanize.pipe';
|
||||
import { ManualAnnotationDialogComponent } from './dialogs/manual-redaction-dialog/manual-annotation-dialog.component';
|
||||
import { FileNotAvailableOverlayComponent } from './screens/file/file-not-available-overlay/file-not-available-overlay.component';
|
||||
import { ToastComponent } from './components/toast/toast.component';
|
||||
|
||||
export function HttpLoaderFactory(httpClient: HttpClient) {
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
<div class="flex-row">
|
||||
<div class="flex-row" [matTooltip]="username">
|
||||
<div [className]="colorClass + ' oval ' + size">{{ initials }}</div>
|
||||
<div *ngIf="withName" class="clamp-2">
|
||||
{{ username || ('initials-avatar.unassigned.label' | translate) }}
|
||||
|
||||
@ -108,6 +108,6 @@ export class AssignOwnerDialogComponent {
|
||||
}
|
||||
|
||||
get multiUsersSelectOptions() {
|
||||
return this.userService.allUsers.map((m) => m.userId);
|
||||
return this.userService.eligibleUsers.map((m) => m.userId);
|
||||
}
|
||||
}
|
||||
|
||||
@ -0,0 +1 @@
|
||||
<p>file-not-available-overlay works!</p>
|
||||
@ -0,0 +1,12 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'redaction-file-not-available-overlay',
|
||||
templateUrl: './file-not-available-overlay.component.html',
|
||||
styleUrls: ['./file-not-available-overlay.component.scss']
|
||||
})
|
||||
export class FileNotAvailableOverlayComponent implements OnInit {
|
||||
constructor() {}
|
||||
|
||||
ngOnInit(): void {}
|
||||
}
|
||||
@ -169,6 +169,7 @@ export class PdfViewerComponent implements OnInit, AfterViewInit, OnChanges {
|
||||
'textUnderlineToolButton',
|
||||
'textSquigglyToolButton',
|
||||
'textStrikeoutToolButton',
|
||||
'viewControlsButton',
|
||||
'linkButton',
|
||||
'toggleNotesButton',
|
||||
'notesPanel',
|
||||
@ -332,6 +333,9 @@ export class PdfViewerComponent implements OnInit, AfterViewInit, OnChanges {
|
||||
} else {
|
||||
// viewer init
|
||||
this.instance.setFitMode('FitPage');
|
||||
const instanceDisplayMode = instance.docViewer.getDisplayModeManager().getDisplayMode();
|
||||
instanceDisplayMode.mode = 'Single';
|
||||
instance.docViewer.getDisplayModeManager().setDisplayMode(instanceDisplayMode);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -56,6 +56,12 @@ export class UserService {
|
||||
return this._allUsers.filter((u) => u.roles.indexOf('RED_MANAGER') >= 0);
|
||||
}
|
||||
|
||||
get eligibleUsers() {
|
||||
return this._allUsers.filter(
|
||||
(u) => u.roles.indexOf('RED_USER') >= 0 || u.roles.indexOf('RED_MANAGER') >= 0
|
||||
);
|
||||
}
|
||||
|
||||
async loadAllUsersIfNecessary() {
|
||||
if (!this._allUsers) {
|
||||
await this.loadAllUsers();
|
||||
|
||||
@ -440,7 +440,7 @@
|
||||
},
|
||||
"project-details": {
|
||||
"project-team": {
|
||||
"label": "Project team"
|
||||
"label": "Review Team"
|
||||
},
|
||||
"charts": {
|
||||
"total-documents": {
|
||||
@ -559,10 +559,10 @@
|
||||
"label": "Owner"
|
||||
},
|
||||
"multi-user": {
|
||||
"label": "Members"
|
||||
"label": "Review Team"
|
||||
},
|
||||
"title": {
|
||||
"label": "Manage Project Owner and Members"
|
||||
"label": "Manage Project Owner and Review Team"
|
||||
},
|
||||
"save": {
|
||||
"label": "Save"
|
||||
|
||||
@ -18,6 +18,7 @@ export interface TypeValue {
|
||||
* True if the entries in this type should be matched case insensitively, default is false.
|
||||
*/
|
||||
caseInsensitive?: boolean;
|
||||
defaultFilter?: boolean;
|
||||
/**
|
||||
* The value of color must be a correct hex color
|
||||
*/
|
||||
@ -30,6 +31,5 @@ export interface TypeValue {
|
||||
* The nonnull entry type.
|
||||
*/
|
||||
type?: string;
|
||||
|
||||
[key: string]: any;
|
||||
isDefaultFilter?: boolean;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user