@openziti/ziti-console-lib 0.12.10 → 0.12.11

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.
@@ -12315,7 +12315,7 @@ class ServicePolicyFormService {
12315
12315
  this.associatedServiceNames = [...this.associatedServiceNames, ...namedAttributes];
12316
12316
  this.associatedServiceNames = sortBy(this.associatedServiceNames);
12317
12317
  this.associatedServiceNames = sortedUniq(this.associatedServiceNames);
12318
- this.associatedIdentityNames = this.associatedServiceNames.filter(item => item !== undefined);
12318
+ this.associatedServiceNames = this.associatedServiceNames.filter(item => item !== undefined);
12319
12319
  return this.associatedServices;
12320
12320
  });
12321
12321
  }
@@ -13493,6 +13493,18 @@ class IdentityFormComponent extends ProjectableForm {
13493
13493
  this.isEditing = !isEmpty(this.formData.id);
13494
13494
  }
13495
13495
  entityUpdated() {
13496
+ this.updateBadges();
13497
+ this.initEnrollmentType();
13498
+ this.getIdentityRoleAttributes();
13499
+ this.getAssociatedServices();
13500
+ this.getAssociatedServicePolicies();
13501
+ this.getCertificateAuthorities();
13502
+ this.loadTags();
13503
+ unset(this.formData, '_links');
13504
+ this.initData = cloneDeep(this.formData);
13505
+ this.extService.updateFormData(this.formData);
13506
+ }
13507
+ updateBadges() {
13496
13508
  if (this.formData.id) {
13497
13509
  this.formData.badges = [];
13498
13510
  const hasERConnectionProp = has(this.formData, 'edgeRouterConnectionStatus');
@@ -13522,15 +13534,6 @@ class IdentityFormComponent extends ProjectableForm {
13522
13534
  this.jwt = this.identitiesService.getJWT(this.formData);
13523
13535
  this.enrollmentExpiration = this.identitiesService.getEnrollmentExpiration(this.formData);
13524
13536
  }
13525
- this.initEnrollmentType();
13526
- this.getIdentityRoleAttributes();
13527
- this.getAssociatedServices();
13528
- this.getAssociatedServicePolicies();
13529
- this.getCertificateAuthorities();
13530
- this.loadTags();
13531
- unset(this.formData, '_links');
13532
- this.initData = cloneDeep(this.formData);
13533
- this.extService.updateFormData(this.formData);
13534
13537
  }
13535
13538
  refreshIdentity() {
13536
13539
  this.svc.refreshIdentity(this.formData.id).then(result => {
@@ -13538,6 +13541,7 @@ class IdentityFormComponent extends ProjectableForm {
13538
13541
  this.initData = cloneDeep(this.formData);
13539
13542
  this.enrollmentExpiration = this.identitiesService.getEnrollmentExpiration(this.formData);
13540
13543
  this.jwt = this.identitiesService.getJWT(this.formData);
13544
+ this.updateBadges();
13541
13545
  this.extService.updateFormData(this.formData);
13542
13546
  });
13543
13547
  }
@@ -13769,6 +13773,9 @@ class IdentityFormComponent extends ProjectableForm {
13769
13773
  });
13770
13774
  this.dialogRef.afterClosed().subscribe({
13771
13775
  next: (result) => {
13776
+ if (!result?.confirmed) {
13777
+ return;
13778
+ }
13772
13779
  this.zitiService.post(`/identities/${this.formData.id}/disable`, { durationMinutes: minutesDifference }).then((result) => {
13773
13780
  const growlerData = new GrowlerModel('success', 'Success', `Identity Disabled`, `Successfully disabled identity`);
13774
13781
  this.growlerService.show(growlerData);
@@ -13798,6 +13805,9 @@ class IdentityFormComponent extends ProjectableForm {
13798
13805
  });
13799
13806
  this.dialogRef.afterClosed().subscribe({
13800
13807
  next: (result) => {
13808
+ if (!result?.confirmed) {
13809
+ return;
13810
+ }
13801
13811
  this.zitiService.post(`/identities/${this.formData.id}/enable`, { durationMinutes: 0 }).then((result) => {
13802
13812
  const growlerData = new GrowlerModel('success', 'Success', `Identity Enabled`, `Successfully enabled identity`);
13803
13813
  this.growlerService.show(growlerData);
@@ -18036,9 +18046,9 @@ class ServiceFormComponent extends ProjectableForm {
18036
18046
  this.isEditing = false;
18037
18047
  this.strategies = [
18038
18048
  { id: 'smartrouting', label: 'Smart Routing' },
18049
+ { id: 'sticky', label: 'Sticky' },
18039
18050
  { id: 'weighted', label: 'Weighted' },
18040
18051
  { id: 'random', label: 'Random' },
18041
- { id: 'ha', label: 'High Availability' },
18042
18052
  ];
18043
18053
  this.bindingTypes = [
18044
18054
  { id: 'udp', name: 'UDP' },
@@ -18615,6 +18625,11 @@ class SimpleServiceComponent extends ProjectableForm {
18615
18625
  const policiesPromise = this.getAssocaitedPolicies();
18616
18626
  Promise.all([configsPromise, policiesPromise]).finally(() => {
18617
18627
  this.dataInit = true;
18628
+ this.initServiceApiData = cloneDeep(this.serviceApiData);
18629
+ this.initInterceptConfigApiData = cloneDeep(this.interceptConfigApiData);
18630
+ this.initHostConfigApiData = cloneDeep(this.hostConfigApiData);
18631
+ this.initDialPolicyApiData = cloneDeep(this.dialPolicyApiData);
18632
+ this.initBindPolicyApiData = cloneDeep(this.bindPolicyApiData);
18618
18633
  });
18619
18634
  }
18620
18635
  });
@@ -23791,7 +23806,7 @@ class AuthPoliciesPageService extends ListPageServiceClass {
23791
23806
  cellRenderer: TableCellNameComponent,
23792
23807
  cellRendererParams: { pathRoot: this.basePath, cellNamePreCheck: (data) => {
23793
23808
  this.checkDefaultAuthPolicy(data).then((result) => {
23794
- if (!result) {
23809
+ if (!result?.confirmed) {
23795
23810
  return;
23796
23811
  }
23797
23812
  this.openEditForm(data?.id);
@@ -23802,7 +23817,7 @@ class AuthPoliciesPageService extends ListPageServiceClass {
23802
23817
  return;
23803
23818
  }
23804
23819
  this.checkDefaultAuthPolicy(data?.data).then((result) => {
23805
- if (!result) {
23820
+ if (!result?.confirmed) {
23806
23821
  return;
23807
23822
  }
23808
23823
  this.openEditForm(data?.data?.id);
@@ -28806,7 +28821,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
28806
28821
  }] });
28807
28822
 
28808
28823
  const VERSION = {
28809
- "version": "3.12.8"
28824
+ "version": "3.12.9"
28810
28825
  };
28811
28826
 
28812
28827
  /*
@@ -28856,7 +28871,6 @@ const COMPONENTS = {
28856
28871
  tabIdentities: `<div class="tabs">
28857
28872
  <div class="tab" data-go="/identities" data-i18n="Identities"></div>
28858
28873
  <div class="tab" data-go="/recipes" data-i18n="Recipes"></div>
28859
- <div class="tab" data-go="/terminators" data-i18n="Terminators"></div>
28860
28874
  <div class="tab" data-go="/posture-checks" data-i18n="PostureChecks"></div>
28861
28875
  </div>`,
28862
28876
  tabPolicies: `<div class="tabs">
@@ -28880,6 +28894,7 @@ const COMPONENTS = {
28880
28894
  tabServices: `<div class="tabs">
28881
28895
  <div class="tab" data-go="/services" data-i18n="Services"></div>
28882
28896
  <div class="tab" data-go="/configs" data-i18n="Configurations"></div>
28897
+ <div class="tab" data-go="/terminators" data-i18n="Terminators"></div>
28883
28898
  <div class="tab" data-go="/config-types" data-i18n="ConfigTypes"></div>
28884
28899
  </div>`,
28885
28900
  tabSessions: `<div class="tabs">