SarahAsad23 commented on code in PR #4484:
URL: https://github.com/apache/texera/pull/4484#discussion_r3174046120
##########
frontend/src/app/workspace/component/power-button/computing-unit-selection.component.html:
##########
@@ -427,3 +435,126 @@
</div>
</div>
</ng-template>
+
+<!-- Modal for adding packages -->
+<nz-modal
+ nzWrapClassName="pve-modal"
+ nzClassName="pve-modal"
+ [nzVisible]="pveModalVisible"
+ nzTitle="Python Environments"
+ (nzOnCancel)="closePveModal()"
+ [nzFooter]="customFooter">
+ <ng-template #customFooter>
+ <div class="footer-all">
+ <button
+ nz-button
+ nzType="default"
+ (click)="closePveModal()">
+ Close
+ </button>
+ <button
+ nz-button
+ nzType="primary"
+ (click)="addEnvironment()">
+ Add Environment
+ </button>
+ </div>
+ </ng-template>
+
+ <ng-container *nzModalContent>
+ <!-- Shared system packages -->
+ <div class="system-section">
+ <nz-collapse>
+ <ng-template #systemHeaderTpl>
+ <div class="system-header">
+ <div class="title">System Packages (read-only)</div>
+ </div>
+ </ng-template>
+ <nz-collapse-panel [nzHeader]="systemHeaderTpl">
+ <div class="system-panel-inner">
+ <div class="package-header-row">
+ <div class="package-column-label">Package</div>
+ <div class="package-column-label">Version</div>
+ </div>
+
+ <div
+ *ngFor="let pkg of systemPackages"
+ class="package-row system-row">
+ <div class="package-inputs">
+ <input
+ nz-input
+ class="system-input"
+ [disabled]="true"
+ [ngModel]="pkg.name" />
+
+ <input
+ nz-input
+ class="system-input"
+ [disabled]="true"
+ [ngModel]="pkg.version" />
+ </div>
+ </div>
+ </div>
+ </nz-collapse-panel>
+ </nz-collapse>
+ </div>
+
+ <!-- Environments -->
+ <nz-collapse>
+ <nz-collapse-panel
+ *ngFor="let pve of pves; let envIndex = index; trackBy: trackByIndex"
+ [nzActive]="pve.expanded"
+ (nzActiveChange)="pve.expanded = $event"
+ [nzHeader]="headerTpl">
+ <!-- Custom header -->
+ <ng-template #headerTpl>
+ <div class="env-header">
+ <span class="env-title"> {{ pve.name }} </span>
+ <span
+ class="env-actions"
+ (click)="$event.stopPropagation()">
+ </span>
+ </div>
+ </ng-template>
+
+ <!-- Panel body -->
+ <div class="ve-form">
+ <div class="fieldRow">
+ <label class="fieldLabel">Virtual Environment Name</label>
+ <input
Review Comment:
Closing the modal terminates the WebSocket connection, which stops the
ongoing installation process.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]