@lowcodeunit/applications-flow-common 1.34.56-lets-get-social-ish → 1.34.59-krakyn-app

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.
@@ -208,33 +208,13 @@ class ApplicationsFlowService {
208
208
  headers: this.loadHeaders(),
209
209
  });
210
210
  }
211
- DeleteApplication(appLookup) {
212
- return this.http.delete(`${this.apiRoot}/api/lowcodeunit/manage/applications/${appLookup}`, {
213
- headers: this.loadHeaders(),
214
- });
215
- }
216
- DeleteDevOpsAction(doaLookup) {
217
- return this.http.delete(`${this.apiRoot}/api/lowcodeunit/manage/devops-actions/${doaLookup}`, {
218
- headers: this.loadHeaders(),
219
- });
220
- }
221
- DeleteProject(projectLookup) {
222
- return this.http.delete(`${this.apiRoot}/api/lowcodeunit/manage/projects/${projectLookup}`, {
223
- headers: this.loadHeaders(),
224
- });
225
- }
226
- DeleteSourceControl(scLookup) {
227
- return this.http.delete(`${this.apiRoot}/api/lowcodeunit/manage/source-controls/${scLookup}`, {
228
- headers: this.loadHeaders(),
229
- });
230
- }
231
211
  EnsureUserEnterprise() {
232
212
  return this.http.post(`${this.apiRoot}/api/lowcodeunit/manage/enterprise/ensure`, {}, {
233
213
  headers: this.loadHeaders(),
234
214
  });
235
215
  }
236
216
  EnterpriseAsCodeRemovals(removals) {
237
- return this.http.post(`${this.apiRoot}/api/lowcodeunit/manage/eac`, {
217
+ return this.http.post(`${this.apiRoot}/api/lowcodeunit/removals/eac`, removals, {
238
218
  headers: this.loadHeaders(),
239
219
  });
240
220
  }
@@ -362,86 +342,6 @@ class ProjectService {
362
342
  // }
363
343
  // });
364
344
  // }
365
- async DeleteApplication(state, appLookup) {
366
- return new Promise((resolve, reject) => {
367
- state.Loading = true;
368
- this.appsFlowSvc.DeleteApplication(appLookup).subscribe(async (response) => {
369
- if (response.Status.Code === 0) {
370
- const eac = await this.LoadEnterpriseAsCode(state);
371
- resolve(eac);
372
- }
373
- else {
374
- state.Loading = false;
375
- reject(response.Status);
376
- console.log(response);
377
- }
378
- }, (err) => {
379
- state.Loading = false;
380
- reject(err);
381
- console.log(err);
382
- });
383
- });
384
- }
385
- DeleteDevOpsAction(state, doaLookup) {
386
- return new Promise((resolve, reject) => {
387
- state.Loading = true;
388
- this.appsFlowSvc.DeleteDevOpsAction(doaLookup).subscribe(async (response) => {
389
- if (response.Status.Code === 0) {
390
- const eac = await this.LoadEnterpriseAsCode(state);
391
- resolve(eac);
392
- }
393
- else {
394
- state.Loading = false;
395
- reject(response.Status);
396
- console.log(response);
397
- }
398
- }, (err) => {
399
- state.Loading = false;
400
- reject(err);
401
- console.log(err);
402
- });
403
- });
404
- }
405
- DeleteProject(state, projectLookup) {
406
- return new Promise((resolve, reject) => {
407
- state.Loading = true;
408
- this.appsFlowSvc.DeleteProject(projectLookup).subscribe(async (response) => {
409
- if (response.Status.Code === 0) {
410
- const eac = await this.LoadEnterpriseAsCode(state);
411
- resolve(eac);
412
- }
413
- else {
414
- state.Loading = false;
415
- reject(response.Status);
416
- console.log(response);
417
- }
418
- }, (err) => {
419
- state.Loading = false;
420
- reject(err);
421
- console.log(err);
422
- });
423
- });
424
- }
425
- DeleteSourceControl(state, scLookup) {
426
- return new Promise((resolve, reject) => {
427
- state.Loading = true;
428
- this.appsFlowSvc.DeleteSourceControl(scLookup).subscribe(async (response) => {
429
- if (response.Status.Code === 0) {
430
- const eac = await this.LoadEnterpriseAsCode(state);
431
- resolve(eac);
432
- }
433
- else {
434
- state.Loading = false;
435
- reject(response.Status);
436
- console.log(response);
437
- }
438
- }, (err) => {
439
- state.Loading = false;
440
- reject(err);
441
- console.log(err);
442
- });
443
- });
444
- }
445
345
  EnsureUserEnterprise(state) {
446
346
  return new Promise((resolve, reject) => {
447
347
  state.Loading = true;
@@ -936,22 +836,62 @@ class EaCService {
936
836
  }
937
837
  async DeleteApplication(appLookup, appName) {
938
838
  if (confirm(`Are you sure you want to delete application '${appName}'?`)) {
939
- await this.projectService.DeleteApplication(this.State, appLookup);
839
+ const eac = {
840
+ EnterpriseLookup: this.State.EaC.EnterpriseLookup,
841
+ Applications: {},
842
+ };
843
+ eac.Applications[appLookup] = {
844
+ Application: {},
845
+ };
846
+ return await this.projectService.EnterpriseAsCodeRemovals(this.State, eac);
940
847
  }
941
848
  }
942
- async DeleteDevOpsAction(doaLookup) {
943
- if (confirm(`Are you sure you want to delete DevOps action '${doaLookup}'?`)) {
944
- await this.projectService.DeleteDevOpsAction(this.State, doaLookup);
849
+ async DeleteDevOpsAction(doaLookup, doaName) {
850
+ if (confirm(`Are you sure you want to delete Build Pipeline '${doaName}'?`)) {
851
+ const eac = {
852
+ EnterpriseLookup: this.State.EaC.EnterpriseLookup,
853
+ Environments: {},
854
+ };
855
+ eac.Environments[this.State.EaC.Enterprise.PrimaryEnvironment] = {
856
+ DevOpsActions: {},
857
+ };
858
+ eac.Environments[this.State.EaC.Enterprise.PrimaryEnvironment].DevOpsActions[doaLookup] = {};
859
+ return await this.projectService.EnterpriseAsCodeRemovals(this.State, eac);
945
860
  }
946
861
  }
947
- async DeleteProject(projectLookup) {
948
- if (confirm(`Are you sure you want to delete Project '${projectLookup}'?`)) {
949
- await this.projectService.DeleteProject(this.State, projectLookup);
862
+ async DeleteModifier(modifierLookup, modifierName) {
863
+ if (confirm(`Are you sure you want to delete Modifier '${modifierName}'?`)) {
864
+ const eac = {
865
+ EnterpriseLookup: this.State.EaC.EnterpriseLookup,
866
+ Modifiers: {},
867
+ };
868
+ eac.Modifiers[modifierLookup] = {};
869
+ return await this.projectService.EnterpriseAsCodeRemovals(this.State, eac);
950
870
  }
951
871
  }
952
- async DeleteSourceControl(scLookup) {
953
- if (confirm(`Are you sure you want to delete Source Control '${scLookup}'?`)) {
954
- await this.projectService.DeleteSourceControl(this.State, scLookup);
872
+ async DeleteProject(projectLookup, projectName) {
873
+ if (confirm(`Are you sure you want to delete Project '${projectName}'?`)) {
874
+ const eac = {
875
+ EnterpriseLookup: this.State.EaC.EnterpriseLookup,
876
+ Projects: {},
877
+ };
878
+ eac.Projects[projectLookup] = {
879
+ Project: {},
880
+ };
881
+ return await this.projectService.EnterpriseAsCodeRemovals(this.State, eac);
882
+ }
883
+ }
884
+ async DeleteSourceControl(srcLookup, srcName) {
885
+ if (confirm(`Are you sure you want to delete Source Control '${srcName}'?`)) {
886
+ const eac = {
887
+ EnterpriseLookup: this.State.EaC.EnterpriseLookup,
888
+ Environments: {},
889
+ };
890
+ eac.Environments[this.State.EaC.Enterprise.PrimaryEnvironment] = {
891
+ Sources: {},
892
+ };
893
+ eac.Environments[this.State.EaC.Enterprise.PrimaryEnvironment].Sources[srcLookup] = {};
894
+ return await this.projectService.EnterpriseAsCodeRemovals(this.State, eac);
955
895
  }
956
896
  }
957
897
  // this.appsFlowEventsSvc.EnsureUserEnterpriseEvent.subscribe(async () => {
@@ -961,7 +901,7 @@ class EaCService {
961
901
  await this.projectService.EnsureUserEnterprise(this.State);
962
902
  }
963
903
  async EnterpriseAsCodeRemovals(eac) {
964
- return await this.projectService.EnterpriseAsCodeRemovals(this.State, eac);
904
+ return this.projectService.EnterpriseAsCodeRemovals(this.State, eac);
965
905
  }
966
906
  async GetActiveEnterprise() {
967
907
  await this.projectService.GetActiveEnterprise(this.State);
@@ -1045,7 +985,7 @@ class EaCService {
1045
985
  saveEaC.Modifiers[req.ModifierLookups[0]] = req.Modifier;
1046
986
  }
1047
987
  if (req.ProjectLookups) {
1048
- req.ProjectLookups.forEach(lookup => {
988
+ req.ProjectLookups.forEach((lookup) => {
1049
989
  saveEaC.Projects[lookup] = {
1050
990
  ModifierLookups: req.ModifierLookups,
1051
991
  };
@@ -1117,9 +1057,7 @@ class ProjectItemsComponent {
1117
1057
  }
1118
1058
  // API Methods
1119
1059
  DeleteProject(projectLookup, projectName) {
1120
- if (confirm(`Are you sure you want to delete project '${projectName}'?`)) {
1121
- this.eacSvc.DeleteProject(projectLookup);
1122
- }
1060
+ this.eacSvc.DeleteProject(projectLookup, projectName).then();
1123
1061
  }
1124
1062
  GetPrimaryHost(project) {
1125
1063
  return project.Hosts[project.Hosts.length - 1];
@@ -2529,9 +2467,11 @@ class DevOpsComponent {
2529
2467
  this.SetEditingSourceControl(Guid.CreateRaw());
2530
2468
  }
2531
2469
  DeleteSourceControl(scLookup) {
2532
- if (confirm(`Are you sure you want to delete source control '${scLookup}'?`)) {
2533
- this.eacSvc.DeleteSourceControl(scLookup);
2534
- }
2470
+ // if (
2471
+ // confirm(`Are you sure you want to delete source control '${scLookup}'?`)
2472
+ // ) {
2473
+ // this.eacSvc.DeleteSourceControl(scLookup);
2474
+ // }
2535
2475
  }
2536
2476
  DevOpsActionLookupChanged(event) {
2537
2477
  this.configureDevOpsAction();
@@ -2741,9 +2681,7 @@ class DFSModifiersComponent {
2741
2681
  this.SetEditingModifier(Guid.CreateRaw());
2742
2682
  }
2743
2683
  DeleteModifier(modifierLookup, modifierName) {
2744
- if (confirm(`Are you sure you want to delete modifier '${modifierName}'?`)) {
2745
- this.eacSvc.DeleteSourceControl(modifierLookup);
2746
- }
2684
+ this.eacSvc.DeleteModifier(modifierLookup, modifierName).then();
2747
2685
  }
2748
2686
  SaveModifier(projectLookup = null) {
2749
2687
  const saveMdfrReq = {
@@ -4245,22 +4183,22 @@ class SourceControlDialogComponent {
4245
4183
  get State() {
4246
4184
  return this.eacSvc.State;
4247
4185
  }
4248
- ngOnInit() {
4249
- }
4186
+ ngOnInit() { }
4250
4187
  CloseDialog() {
4251
4188
  this.dialogRef.close();
4252
4189
  }
4253
- DeleteSourceControl(scLookup) {
4254
- if (confirm(`Are you sure you want to delete source control '${scLookup}'?`)) {
4255
- this.eacSvc.DeleteSourceControl(scLookup);
4190
+ DeleteSourceControl() {
4191
+ this.eacSvc
4192
+ .DeleteSourceControl(this.data.scLookup, this.data.scName)
4193
+ .then((status) => {
4256
4194
  this.CloseDialog();
4257
- }
4195
+ });
4258
4196
  }
4259
4197
  HandleSaveStatusEvent(event) {
4260
- console.log("event to save: ", event);
4198
+ console.log('event to save: ', event);
4261
4199
  if (event.Code === 0) {
4262
- this.snackBar.open("Source Control Succesfully Saved", "Dismiss", {
4263
- duration: 5000
4200
+ this.snackBar.open('Source Control Succesfully Saved', 'Dismiss', {
4201
+ duration: 5000,
4264
4202
  });
4265
4203
  this.CloseDialog();
4266
4204
  }
@@ -4273,10 +4211,10 @@ class SourceControlDialogComponent {
4273
4211
  }
4274
4212
  }
4275
4213
  SourceControlDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: SourceControlDialogComponent, deps: [{ token: i2$3.MatDialogRef }, { token: EaCService }, { token: MAT_DIALOG_DATA }, { token: i3$1.MatSnackBar }], target: i0.ɵɵFactoryTarget.Component });
4276
- SourceControlDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", type: SourceControlDialogComponent, selector: "lcu-source-control-dialog", viewQueries: [{ propertyName: "DevopsSourceControl", first: true, predicate: DevopsSourceControlFormComponent, descendants: true }], ngImport: i0, template: "\n<div class=\"dialog-header\" fxLayoutAlign=\"space-between center\">\n <h2 mat-dialog-title>Source Control</h2>\n <button mat-icon-button (click)=\"CloseDialog()\">\n <mat-icon>cancel</mat-icon>\n </button>\n</div>\n\n<mat-dialog-content>\n\n <ng-container *ngIf=\"!HasConnection\">\n \n <lcu-git-auth></lcu-git-auth>\n\n </ng-container>\n\n <ng-conatiner *ngIf=\"HasConnection\" fxLayout=\"column\">\n\n <div fxLayoutAlign=\"center center\">\n <lcu-devops-source-control-form\n [environment]=\"data.environment\"\n [environment-lookup]=\"data.environmentLookup\"\n [editing-source-control-lookup]=\"data.scLookup\"\n (save-status-event)=\"HandleSaveStatusEvent($event)\">\n </lcu-devops-source-control-form>\n </div>\n \n <mat-error *ngIf=\"ErrorMessage\" fxLayoutAlign=\"center center\" >\n {{ ErrorMessage }}\n </mat-error>\n\n </ng-conatiner>\n\n</mat-dialog-content>\n\n<mat-dialog-actions \n class=\"actions-container\" \n div fxLayout=\"row\" \n fxLayoutAlign=\"space-between center\"\n \n>\n <div fxLayoutAlign=\"start center\">\n <button\n mat-raised-button\n color=\"warn\"\n (click)=\"DeleteSourceControl(data.scLookup)\"\n matTooltip=\"Delete {{ data.scLookup }}\"\n >\n Delete\n </button>\n </div>\n\n <div fxLayoutAlign=\"end center\">\n <button \n class=\"action-button\"\n mat-raised-button\n fxFlex=\"43%\"\n (click)=\"CloseDialog()\">\n Cancel\n\n </button>\n\n\n\n <button \n class=\"action-button\"\n mat-raised-button \n *ngIf=\"!State?.Loading\" \n fxFlex=\"30%\" \n color=\"primary\" \n (click)=\"SaveSourceControl()\"\n [disabled]=\"!DevOpsSourceControlFormGroup?.valid || !DevOpsSourceControlFormGroup?.dirty\">\n <!-- <mat-icon>save</mat-icon> -->\n Save\n </button>\n </div>\n\n</mat-dialog-actions>\n\n\n\n", styles: [".dialog-header{width:100%}.action-button{margin:0 10px}\n"], components: [{ type: i4.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i5.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: GitAuthComponent, selector: "lcu-git-auth" }, { type: DevopsSourceControlFormComponent, selector: "lcu-devops-source-control-form", inputs: ["editing-source-control-lookup", "environment", "environment-lookup"], outputs: ["save-status-event"] }], directives: [{ type: i8.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { type: i2$3.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { type: i2$3.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i9.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i8.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { type: i4$1.MatError, selector: "mat-error", inputs: ["id"] }, { type: i2$3.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }, { type: i11.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { type: i8.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }] });
4214
+ SourceControlDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", type: SourceControlDialogComponent, selector: "lcu-source-control-dialog", viewQueries: [{ propertyName: "DevopsSourceControl", first: true, predicate: DevopsSourceControlFormComponent, descendants: true }], ngImport: i0, template: "<div class=\"dialog-header\" fxLayoutAlign=\"space-between center\">\n <h2 mat-dialog-title>Source Control</h2>\n <button mat-icon-button (click)=\"CloseDialog()\">\n <mat-icon>cancel</mat-icon>\n </button>\n</div>\n\n<mat-dialog-content>\n <ng-container *ngIf=\"!HasConnection\">\n <lcu-git-auth></lcu-git-auth>\n </ng-container>\n\n <ng-conatiner *ngIf=\"HasConnection\" fxLayout=\"column\">\n <div fxLayoutAlign=\"center center\">\n <lcu-devops-source-control-form\n [environment]=\"data.environment\"\n [environment-lookup]=\"data.environmentLookup\"\n [editing-source-control-lookup]=\"data.scLookup\"\n (save-status-event)=\"HandleSaveStatusEvent($event)\"\n >\n </lcu-devops-source-control-form>\n </div>\n\n <mat-error *ngIf=\"ErrorMessage\" fxLayoutAlign=\"center center\">\n {{ ErrorMessage }}\n </mat-error>\n </ng-conatiner>\n</mat-dialog-content>\n\n<mat-dialog-actions\n class=\"actions-container\"\n div\n fxLayout=\"row\"\n fxLayoutAlign=\"space-between center\"\n>\n <div fxLayoutAlign=\"start center\">\n <button\n mat-raised-button\n color=\"warn\"\n (click)=\"DeleteSourceControl()\"\n matTooltip=\"Delete {{ data.scName }}\"\n >\n Delete\n </button>\n </div>\n\n <div fxLayoutAlign=\"end center\">\n <button\n class=\"action-button\"\n mat-raised-button\n fxFlex=\"43%\"\n (click)=\"CloseDialog()\"\n >\n Cancel\n </button>\n\n <button\n class=\"action-button\"\n mat-raised-button\n *ngIf=\"!State?.Loading\"\n fxFlex=\"30%\"\n color=\"primary\"\n (click)=\"SaveSourceControl()\"\n [disabled]=\"\n !DevOpsSourceControlFormGroup?.valid ||\n !DevOpsSourceControlFormGroup?.dirty\n \"\n >\n <!-- <mat-icon>save</mat-icon> -->\n Save\n </button>\n </div>\n</mat-dialog-actions>\n", styles: [".dialog-header{width:100%}.action-button{margin:0 10px}\n"], components: [{ type: i4.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i5.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: GitAuthComponent, selector: "lcu-git-auth" }, { type: DevopsSourceControlFormComponent, selector: "lcu-devops-source-control-form", inputs: ["editing-source-control-lookup", "environment", "environment-lookup"], outputs: ["save-status-event"] }], directives: [{ type: i8.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { type: i2$3.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { type: i2$3.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i9.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i8.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { type: i4$1.MatError, selector: "mat-error", inputs: ["id"] }, { type: i2$3.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }, { type: i11.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { type: i8.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }] });
4277
4215
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: SourceControlDialogComponent, decorators: [{
4278
4216
  type: Component,
4279
- args: [{ selector: 'lcu-source-control-dialog', template: "\n<div class=\"dialog-header\" fxLayoutAlign=\"space-between center\">\n <h2 mat-dialog-title>Source Control</h2>\n <button mat-icon-button (click)=\"CloseDialog()\">\n <mat-icon>cancel</mat-icon>\n </button>\n</div>\n\n<mat-dialog-content>\n\n <ng-container *ngIf=\"!HasConnection\">\n \n <lcu-git-auth></lcu-git-auth>\n\n </ng-container>\n\n <ng-conatiner *ngIf=\"HasConnection\" fxLayout=\"column\">\n\n <div fxLayoutAlign=\"center center\">\n <lcu-devops-source-control-form\n [environment]=\"data.environment\"\n [environment-lookup]=\"data.environmentLookup\"\n [editing-source-control-lookup]=\"data.scLookup\"\n (save-status-event)=\"HandleSaveStatusEvent($event)\">\n </lcu-devops-source-control-form>\n </div>\n \n <mat-error *ngIf=\"ErrorMessage\" fxLayoutAlign=\"center center\" >\n {{ ErrorMessage }}\n </mat-error>\n\n </ng-conatiner>\n\n</mat-dialog-content>\n\n<mat-dialog-actions \n class=\"actions-container\" \n div fxLayout=\"row\" \n fxLayoutAlign=\"space-between center\"\n \n>\n <div fxLayoutAlign=\"start center\">\n <button\n mat-raised-button\n color=\"warn\"\n (click)=\"DeleteSourceControl(data.scLookup)\"\n matTooltip=\"Delete {{ data.scLookup }}\"\n >\n Delete\n </button>\n </div>\n\n <div fxLayoutAlign=\"end center\">\n <button \n class=\"action-button\"\n mat-raised-button\n fxFlex=\"43%\"\n (click)=\"CloseDialog()\">\n Cancel\n\n </button>\n\n\n\n <button \n class=\"action-button\"\n mat-raised-button \n *ngIf=\"!State?.Loading\" \n fxFlex=\"30%\" \n color=\"primary\" \n (click)=\"SaveSourceControl()\"\n [disabled]=\"!DevOpsSourceControlFormGroup?.valid || !DevOpsSourceControlFormGroup?.dirty\">\n <!-- <mat-icon>save</mat-icon> -->\n Save\n </button>\n </div>\n\n</mat-dialog-actions>\n\n\n\n", styles: [".dialog-header{width:100%}.action-button{margin:0 10px}\n"] }]
4217
+ args: [{ selector: 'lcu-source-control-dialog', template: "<div class=\"dialog-header\" fxLayoutAlign=\"space-between center\">\n <h2 mat-dialog-title>Source Control</h2>\n <button mat-icon-button (click)=\"CloseDialog()\">\n <mat-icon>cancel</mat-icon>\n </button>\n</div>\n\n<mat-dialog-content>\n <ng-container *ngIf=\"!HasConnection\">\n <lcu-git-auth></lcu-git-auth>\n </ng-container>\n\n <ng-conatiner *ngIf=\"HasConnection\" fxLayout=\"column\">\n <div fxLayoutAlign=\"center center\">\n <lcu-devops-source-control-form\n [environment]=\"data.environment\"\n [environment-lookup]=\"data.environmentLookup\"\n [editing-source-control-lookup]=\"data.scLookup\"\n (save-status-event)=\"HandleSaveStatusEvent($event)\"\n >\n </lcu-devops-source-control-form>\n </div>\n\n <mat-error *ngIf=\"ErrorMessage\" fxLayoutAlign=\"center center\">\n {{ ErrorMessage }}\n </mat-error>\n </ng-conatiner>\n</mat-dialog-content>\n\n<mat-dialog-actions\n class=\"actions-container\"\n div\n fxLayout=\"row\"\n fxLayoutAlign=\"space-between center\"\n>\n <div fxLayoutAlign=\"start center\">\n <button\n mat-raised-button\n color=\"warn\"\n (click)=\"DeleteSourceControl()\"\n matTooltip=\"Delete {{ data.scName }}\"\n >\n Delete\n </button>\n </div>\n\n <div fxLayoutAlign=\"end center\">\n <button\n class=\"action-button\"\n mat-raised-button\n fxFlex=\"43%\"\n (click)=\"CloseDialog()\"\n >\n Cancel\n </button>\n\n <button\n class=\"action-button\"\n mat-raised-button\n *ngIf=\"!State?.Loading\"\n fxFlex=\"30%\"\n color=\"primary\"\n (click)=\"SaveSourceControl()\"\n [disabled]=\"\n !DevOpsSourceControlFormGroup?.valid ||\n !DevOpsSourceControlFormGroup?.dirty\n \"\n >\n <!-- <mat-icon>save</mat-icon> -->\n Save\n </button>\n </div>\n</mat-dialog-actions>\n", styles: [".dialog-header{width:100%}.action-button{margin:0 10px}\n"] }]
4280
4218
  }], ctorParameters: function () { return [{ type: i2$3.MatDialogRef }, { type: EaCService }, { type: undefined, decorators: [{
4281
4219
  type: Inject,
4282
4220
  args: [MAT_DIALOG_DATA]
@@ -4353,20 +4291,21 @@ class MainFeedCardComponent {
4353
4291
  }
4354
4292
  else if (action.ActionType == 'Modal') {
4355
4293
  if (action.Action == 'AddSourceControl') {
4356
- this.OpenSourceControlDialog(null);
4294
+ this.OpenSourceControlDialog(null, null);
4357
4295
  }
4358
4296
  else {
4359
4297
  alert('other modaled ' + action.Action);
4360
4298
  }
4361
4299
  }
4362
4300
  }
4363
- OpenSourceControlDialog(scLookup) {
4301
+ OpenSourceControlDialog(scLookup, scName) {
4364
4302
  const dialogRef = this.dialog.open(SourceControlDialogComponent, {
4365
4303
  width: '550px',
4366
4304
  data: {
4367
4305
  environment: this.Environment,
4368
4306
  environmentLookup: this.ActiveEnvironmentLookup,
4369
4307
  scLookup: scLookup,
4308
+ scName: scName,
4370
4309
  },
4371
4310
  });
4372
4311
  dialogRef.afterClosed().subscribe((result) => {
@@ -5245,22 +5184,22 @@ class BuildPipelineDialogComponent {
5245
5184
  get State() {
5246
5185
  return this.eacSvc.State;
5247
5186
  }
5248
- ngOnInit() {
5249
- }
5187
+ ngOnInit() { }
5250
5188
  CloseDialog() {
5251
5189
  this.dialogRef.close();
5252
5190
  }
5253
5191
  DeleteDevOpsAction() {
5254
- if (confirm(`Are you sure you want to delete build pipeline '${this.data.doaName}'?`)) {
5255
- this.eacSvc.DeleteDevOpsAction(this.data.devopsActionLookup);
5192
+ this.eacSvc
5193
+ .DeleteDevOpsAction(this.data.devopsActionLookup, this.data.doaName)
5194
+ .then((status) => {
5256
5195
  this.CloseDialog();
5257
- }
5196
+ });
5258
5197
  }
5259
5198
  HandleResponseEvent(event) {
5260
- console.log("Response Event: ", event);
5199
+ console.log('Response Event: ', event);
5261
5200
  if (event.Code === 0) {
5262
- this.snackBar.open("Build Pipeline Created Succesfully", "Dismiss", {
5263
- duration: 5000
5201
+ this.snackBar.open('Build Pipeline Created Succesfully', 'Dismiss', {
5202
+ duration: 5000,
5264
5203
  });
5265
5204
  this.CloseDialog();
5266
5205
  }
@@ -6400,9 +6339,7 @@ class DFSModifiersFormComponent {
6400
6339
  this.SetEditingModifier(Guid.CreateRaw());
6401
6340
  }
6402
6341
  DeleteModifier(modifierLookup, modifierName) {
6403
- if (confirm(`Are you sure you want to delete modifier '${modifierName}'?`)) {
6404
- this.eacSvc.DeleteSourceControl(modifierLookup);
6405
- }
6342
+ this.eacSvc.DeleteModifier(modifierLookup, modifierName).then();
6406
6343
  }
6407
6344
  SaveModifierForAllProjects(projectLookups) {
6408
6345
  const saveMdfrReq = {