2  * ============LICENSE_START=======================================================
 
   4  * ================================================================================
 
   5  * Copyright (C) 2021 Nordix Foundation. All rights reserved.
 
   6  * ================================================================================
 
   7  * Licensed under the Apache License, Version 2.0 (the "License");
 
   8  * you may not use this file except in compliance with the License.
 
   9  * You may obtain a copy of the License at
 
  11  *      http://www.apache.org/licenses/LICENSE-2.0
 
  13  * Unless required by applicable law or agreed to in writing, software
 
  14  * distributed under the License is distributed on an "AS IS" BASIS,
 
  15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 
  16  * See the License for the specific language governing permissions and
 
  17  * limitations under the License.
 
  18  * ============LICENSE_END=========================================================
 
  21 <div class="operation-handler">
 
  22   <loader [display]="isLoading" [size]="'large'" [relative]="true"></loader>
 
  24   <form class="w-sdc-form">
 
  26     <div class="side-by-side">
 
  27       <div class="form-item">
 
  29             label="{{ 'OPERATION_INTERFACE_TYPE' | translate }}"
 
  30             [(value)]="interfaceType"
 
  35       <div class="form-item">
 
  37             label="{{ 'OPERATION_NAME' | translate }}"
 
  38             [(value)]="operationToUpdate.name"
 
  44     <div class="i-sdc-form-item">
 
  46           label="{{'OPERATION_DESCRIPTION' | translate}}"
 
  47           [(value)]="operationToUpdate.description"
 
  48           (valueChange)="onDescriptionChange($event)">
 
  52     <div class="i-sdc-form-item">
 
  54           label="{{'IMPLEMENTATION_NAME' | translate}}"
 
  55           [(value)]="operationToUpdate.implementation.artifactName">
 
  59     <div class="separator-buttons">
 
  60       <tab tabTitle="Inputs"></tab>
 
  61       <a class="add-param-link add-btn"
 
  62          [ngClass]="{'disabled': readonly}"
 
  63          (click)="onAddInput()">{{'OPERATION_ADD_INPUT' | translate}}
 
  67     <div class="generic-table">
 
  68       <div class="header-row table-row">
 
  69         <span class="cell header-cell field-input-name">{{ 'OPERATION_PARAM_NAME' | translate }}</span>
 
  70         <span class="cell header-cell field-input-value">{{ 'OPERATION_INPUT_VALUE' | translate }}</span>
 
  71         <span class="cell header-cell remove">●●●</span>
 
  73       <div class="empty-msg data-row" *ngIf="!inputs.length">
 
  74         <div>{{ 'OPERATION_INPUT_EMPTY' | translate }}</div>
 
  77           *ngFor="let inputParameter of inputs"
 
  79           [input]="inputParameter"
 
  80           [onRemoveInput]="onRemoveInput"
 
  81           [validityChanged]="validityChanged">