@chisquare-tech/origine-ngx-apps-services 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -959,7 +959,7 @@ class ServiceConsoleTab {
|
|
|
959
959
|
<span class="o-r"></span>
|
|
960
960
|
@if (d().canManage) {<label class="o-flex o-sm" style="gap:6px"><input type="checkbox" [ngModel]="write()" (ngModelChange)="write.set($event)" data-testid="svc-console-write" /> Allow writes</label>}
|
|
961
961
|
@if (d().databases.length) {
|
|
962
|
-
<select class="o-in o-sm" style="width:auto" aria-label="Database" [ngModel]="db()" (ngModelChange)="db.set($event)" data-testid="svc-console-db">
|
|
962
|
+
<select class="o-in o-sm" style="width:auto" aria-label="Database" [ngModel]="db() || d().databases[0]?.name" (ngModelChange)="db.set($event)" data-testid="svc-console-db">
|
|
963
963
|
@for (x of d().databases; track x.name) {<option [value]="x.name">{{ x.name }}</option>}
|
|
964
964
|
</select>
|
|
965
965
|
}
|
|
@@ -1022,7 +1022,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
|
|
|
1022
1022
|
<span class="o-r"></span>
|
|
1023
1023
|
@if (d().canManage) {<label class="o-flex o-sm" style="gap:6px"><input type="checkbox" [ngModel]="write()" (ngModelChange)="write.set($event)" data-testid="svc-console-write" /> Allow writes</label>}
|
|
1024
1024
|
@if (d().databases.length) {
|
|
1025
|
-
<select class="o-in o-sm" style="width:auto" aria-label="Database" [ngModel]="db()" (ngModelChange)="db.set($event)" data-testid="svc-console-db">
|
|
1025
|
+
<select class="o-in o-sm" style="width:auto" aria-label="Database" [ngModel]="db() || d().databases[0]?.name" (ngModelChange)="db.set($event)" data-testid="svc-console-db">
|
|
1026
1026
|
@for (x of d().databases; track x.name) {<option [value]="x.name">{{ x.name }}</option>}
|
|
1027
1027
|
</select>
|
|
1028
1028
|
}
|
|
@@ -1149,7 +1149,7 @@ class ServiceDumpsCard {
|
|
|
1149
1149
|
this.go(this.api.deleteDump(this.projectKey(), this.d().id, x.id), () => this.done.emit('Dump deleted.'), 'The dump could not be deleted.');
|
|
1150
1150
|
}
|
|
1151
1151
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: ServiceDumpsCard, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1152
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: ServiceDumpsCard, isStandalone: true, selector: "o-svc-dumps", inputs: { d: { classPropertyName: "d", publicName: "d", isSignal: true, isRequired: true, transformFunction: null }, projectKey: { classPropertyName: "projectKey", publicName: "projectKey", isSignal: true, isRequired: true, transformFunction: null }, dumps: { classPropertyName: "dumps", publicName: "dumps", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { done: "done", failed: "failed" }, ngImport: i0, template: `
|
|
1152
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: ServiceDumpsCard, isStandalone: true, selector: "o-svc-dumps", inputs: { d: { classPropertyName: "d", publicName: "d", isSignal: true, isRequired: true, transformFunction: null }, projectKey: { classPropertyName: "projectKey", publicName: "projectKey", isSignal: true, isRequired: true, transformFunction: null }, dumps: { classPropertyName: "dumps", publicName: "dumps", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { done: "done", failed: "failed" }, host: { styleAttribute: "display:flex;flex-direction:column;gap:14px" }, ngImport: i0, template: `
|
|
1153
1153
|
<div class="o-card o-cb o-col" style="gap:8px" data-testid="svc-fork-card">
|
|
1154
1154
|
<b>Fork for staging</b>
|
|
1155
1155
|
<span class="o-hint">Copy from the latest backup into a new instance. {{ d().name }} keeps running untouched.</span>
|
|
@@ -1200,6 +1200,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
|
|
|
1200
1200
|
selector: 'o-svc-dumps',
|
|
1201
1201
|
imports: [FormsModule],
|
|
1202
1202
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1203
|
+
host: { style: 'display:flex;flex-direction:column;gap:14px' },
|
|
1203
1204
|
template: `
|
|
1204
1205
|
<div class="o-card o-cb o-col" style="gap:8px" data-testid="svc-fork-card">
|
|
1205
1206
|
<b>Fork for staging</b>
|
|
@@ -1727,7 +1728,7 @@ class ServicePage {
|
|
|
1727
1728
|
if (d.window?.from && !this.pitr())
|
|
1728
1729
|
this.pitr.set(toLocalInput(new Date().toISOString()));
|
|
1729
1730
|
}
|
|
1730
|
-
const settling = moving(d.state) || !!this.openRotation() || d.attachments.some((a) => a.state === 'pending') || (d.backups ?? []).some((b) => b.phase === 'running' || b.phase === 'pending');
|
|
1731
|
+
const settling = moving(d.state) || d.readyNodes < d.nodes || (d.dumps ?? []).some((x) => x.phase !== 'completed' && x.phase !== 'failed') || !!this.openRotation() || d.attachments.some((a) => a.state === 'pending') || (d.backups ?? []).some((b) => b.phase === 'running' || b.phase === 'pending');
|
|
1731
1732
|
this.loadTimer = setTimeout(() => this.load(), settling ? 4000 : 30_000);
|
|
1732
1733
|
},
|
|
1733
1734
|
error: (e) => {
|