Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[VAS] Bug 11792: fix for build #1472

Merged
merged 1 commit into from
Sep 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ <h2>{{ 'INGEST_CONTRACT.MODAL_CREATE.ATTACHMENT_POSITION.TITLE' | translate }}
[formControl]="linkParentIdControl"
[tenantIdentifier]="tenantIdentifier"
[accessContract]="accessContractSelect.value"
[mode]="FILLING_PLAN_MODE.SOLO"
[mode]="FilingPlanMode.SOLO"
></vitamui-library-filing-plan>
</div>
</div>
Expand Down Expand Up @@ -402,7 +402,7 @@ <h2>{{ 'INGEST_CONTRACT.MODAL_CREATE.ATTACHMENT_CONTROLS.TITLE' | translate }}
[formControl]="checkParentIdControl"
[tenantIdentifier]="tenantIdentifier"
[accessContract]="accessContractSelect.value"
[mode]="FILLING_PLAN_MODE.INCLUDE_ONLY"
[mode]="FilingPlanMode.INCLUDE_ONLY"
[required]="checkParentIdControl.value === 'REQUIRED'"
></vitamui-library-filing-plan>
</div>
Expand Down Expand Up @@ -433,17 +433,17 @@ <h2>{{ 'INGEST_CONTRACT.MODAL_CREATE.SIGNING_POLICY.TITLE' | translate }}</h2>
<div class="row">
<mat-button-toggle-group formControlName="signedDocument" #group="matButtonToggleGroup"
class="vitamui-button-toggle-group">
<mat-button-toggle value="{{ signedDocumentPolicyEnum.ALLOWED }}"
(click)="changeSignedDocumentPolicy(signedDocumentPolicyEnum.ALLOWED)">
{{ 'INGEST_CONTRACT.SIGNED_DOCUMENT_TYPE.' + signedDocumentPolicyEnum.ALLOWED | translate }}
<mat-button-toggle value="{{ SignedDocumentPolicyEnum.ALLOWED }}"
(click)="changeSignedDocumentPolicy(SignedDocumentPolicyEnum.ALLOWED)">
{{ 'INGEST_CONTRACT.SIGNED_DOCUMENT_TYPE.' + SignedDocumentPolicyEnum.ALLOWED | translate }}
</mat-button-toggle>
<mat-button-toggle value="{{ signedDocumentPolicyEnum.ONLY }}"
(click)="changeSignedDocumentPolicy(signedDocumentPolicyEnum.ONLY)">
{{ 'INGEST_CONTRACT.SIGNED_DOCUMENT_TYPE.' + signedDocumentPolicyEnum.ONLY | translate }}
<mat-button-toggle value="{{ SignedDocumentPolicyEnum.ONLY }}"
(click)="changeSignedDocumentPolicy(SignedDocumentPolicyEnum.ONLY)">
{{ 'INGEST_CONTRACT.SIGNED_DOCUMENT_TYPE.' + SignedDocumentPolicyEnum.ONLY | translate }}
</mat-button-toggle>
<mat-button-toggle value="{{ signedDocumentPolicyEnum.FORBIDDEN }}"
(click)="changeSignedDocumentPolicy(signedDocumentPolicyEnum.FORBIDDEN)">
{{ 'INGEST_CONTRACT.SIGNED_DOCUMENT_TYPE.' + signedDocumentPolicyEnum.FORBIDDEN | translate }}
<mat-button-toggle value="{{ SignedDocumentPolicyEnum.FORBIDDEN }}"
(click)="changeSignedDocumentPolicy(SignedDocumentPolicyEnum.FORBIDDEN)">
{{ 'INGEST_CONTRACT.SIGNED_DOCUMENT_TYPE.' + SignedDocumentPolicyEnum.FORBIDDEN | translate }}
</mat-button-toggle>
</mat-button-toggle-group>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import { HttpHeaders, HttpParams } from '@angular/common/http';
import { Component, Inject, Input, OnDestroy, OnInit } from '@angular/core';
import { FormBuilder, FormControl, FormGroup, Validators } from '@angular/forms';
import '@angular/localize/init';
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
import { MatSnackBar } from '@angular/material/snack-bar';
import { FileFormat, FilingPlanMode } from 'projects/vitamui-library/src/public-api';
import { Subscription } from 'rxjs';
Expand All @@ -58,8 +58,8 @@ import { IngestContractCreateValidators } from './ingest-contract-create.validat
})
export class IngestContractCreateComponent implements OnInit, OnDestroy {

protected readonly signedDocumentPolicyEnum = SignedDocumentPolicyEnum;
protected readonly FILLING_PLAN_MODE = FilingPlanMode;
readonly SignedDocumentPolicyEnum = SignedDocumentPolicyEnum;
readonly FilingPlanMode = FilingPlanMode;

@Input() tenantIdentifier: number;
@Input() isSlaveMode: boolean;
Expand Down