@switch (activePanel()) {
@case ('history') {
@if (history.isLoading()) {
} @else {
| {{ 'tcms.testenv.history.triggeredBy' | transloco }} |
{{ 'tcms.testenv.history.triggeredOn' | transloco }} |
{{ 'tcms.testenv.history.controlSource' | transloco }} |
{{ 'tcms.testenv.history.duration' | transloco }} |
{{ 'tcms.testenv.history.status' | transloco }} |
{{ 'tcms.testenv.history.error' | transloco }} |
@for (log of history.value()?.responseValue ?? []; track log.resetLogId) {
| {{ log.triggeredBy }} |
{{ log.triggeredOn | date:'medium' }} |
{{ log.controlSource }} |
@if (log.durationMs != null) {
{{ log.durationMs | number:'1.0-0' }} ms
} @else {
—
}
|
{{ log.success
? ('tcms.testenv.history.success' | transloco)
: ('tcms.testenv.history.failed' | transloco) }}
|
{{ log.errorMessage ?? '' }} |
}
@if ((history.value()?.responseValue ?? []).length === 0) {
| {{ 'tcms.testenv.history.empty' | transloco }} |
}
}
}
@case ('snapshots') {
@if (snapshots.isLoading()) {
} @else {
| {{ 'tcms.testenv.snapshots.col.name' | transloco }} |
{{ 'tcms.testenv.snapshots.col.sourceDb' | transloco }} |
{{ 'tcms.testenv.snapshots.col.created' | transloco }} |
{{ 'tcms.testenv.snapshots.col.sizeMb' | transloco }} |
{{ 'tcms.testenv.snapshots.col.actions' | transloco }} |
@for (snap of snapshots.value()?.responseValue ?? []; track snap.snapshotName) {
{{ snap.snapshotName }} |
{{ snap.sourceDatabase }} |
{{ snap.createDate | date:'mediumDate' }} |
{{ snap.sizeMb | number:'1.1-1' }} MB |
|
@if (confirmRestoreSnapshot()?.snapshotName === snap.snapshotName) {
warning
{{ 'tcms.testenv.snapshots.restoreConfirm' | transloco: { name: snap.snapshotName } }}
|
}
@if (confirmDeleteSnapshot()?.snapshotName === snap.snapshotName) {
warning
{{ 'tcms.testenv.snapshots.deleteConfirm' | transloco: { name: snap.snapshotName } }}
|
}
}
@if ((snapshots.value()?.responseValue ?? []).length === 0) {
| {{ 'tcms.testenv.snapshots.empty' | transloco }} |
}
}
}
@case ('register') {
}
@case ('clone') {
info
{{ 'tcms.testenv.clone.warning' | transloco }}
}
}
}