Ontica/Empiria.Land.Intranet

View on GitHub
src/app/views/transactions/workflow-commander/workflow-commander.component.html

Summary

Maintainability
Test Coverage
<emp-ng-card
  [title]='titleText'
  [hint]="transactionList.length > 1 ?
         '¿Qué debo hacer con los ' + transactionList.length + ' trámites del paquete?' :
         '¿Qué debo hacer con el trámite seleccionado?'"
  (cardClose)="onCloseClicked()">

  <div class="card-body-padding">

    <emp-land-workflow-command-config
      [applicableCommandsList]="applicableCommandsList"
      (formData)="onWorkflowCommandConfigEvent($event)">

    </emp-land-workflow-command-config>

    <emp-land-list-selector *ngIf="formWorkflow.isValid" [canEdit]="canEditList"
      [itemsList]="transactionList"
      (listSelectorEvent)="onTransactionListSelectorEvent($event)">

    </emp-land-list-selector>

    <mat-divider class="horizontal"></mat-divider>

    <div class="fx-row-container fx-end">

      <div class="fx-item-none" style="padding-right: 8px;">

        <button type="submit"
          [class.btn]="!formWorkflow.isValid || transactionList.length === 0"
          [class.btn-action]="formWorkflow.isValid && transactionList.length > 0"
          (click)="onSubmitButtonClicked()">
          Ejecutar la operación
        </button>

      </div>

    </div>

  </div>

</emp-ng-card>