Skip to content
Open
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 @@ -26,19 +26,17 @@ <h2 mat-dialog-title>{{ readonly ? portTypeLabel + ' Details' : 'Edit ' + portTy
</mat-form-field>
</div>
<div>
@if (request.entity.component.allowRemoteAccess) {
<mat-form-field>
<mat-label>
Concurrent Tasks
<i
class="fa fa-info-circle"
nifiTooltip
[tooltipComponentType]="TextTip"
tooltipInputData="The number of tasks that should be concurrently scheduled for this port."></i>
</mat-label>
<input matInput formControlName="concurrentTasks" type="text" [readonly]="readonly" />
</mat-form-field>
}
<mat-form-field>
<mat-label>
Concurrent Tasks
<i
class="fa fa-info-circle"_
nifiTooltip
[tooltipComponentType]="TextTip"
tooltipInputData="The number of tasks that should be concurrently scheduled for this port."></i>
</mat-label>
<input matInput formControlName="concurrentTasks" type="text" [readonly]="readonly" />
</mat-form-field>
</div>
@if (portTypeLabel === 'Output Port') {
<div class="mb-3.5">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,15 +95,11 @@ export class EditPort extends CloseOnEscapeDialog {
component: {
id: this.request.entity.id,
name: this.editPortForm.get('name')?.value,
comments: this.editPortForm.get('comments')?.value
comments: this.editPortForm.get('comments')?.value,
concurrentlySchedulableTaskCount: this.editPortForm.get('concurrentTasks')?.value
}
};

// if this port allows remote access update the concurrent tasks
if (this.request.entity.component.allowRemoteAccess) {
payload.component.concurrentlySchedulableTaskCount = this.editPortForm.get('concurrentTasks')?.value;
}

// if this port is an output port update the port function
if (ComponentType.OutputPort == this.request.type) {
payload.component.portFunction = this.editPortForm.get('portFunction')?.value ? 'FAILURE' : 'STANDARD';
Expand Down
Loading