@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.
- package/esm2020/lib/controls/dfs-modifiers-form/dfs-modifiers-form.component.mjs +2 -4
- package/esm2020/lib/dialogs/build-pipeline-dialog/build-pipeline-dialog.component.mjs +9 -9
- package/esm2020/lib/dialogs/source-control-dialog/source-control-dialog.component.mjs +12 -12
- package/esm2020/lib/elements/main-feed-card/main-feed-card.component.mjs +4 -3
- package/esm2020/lib/elements/projects/controls/project-items/project-items.component.mjs +2 -4
- package/esm2020/lib/elements/projects/controls/tabs/devops/devops.component.mjs +6 -4
- package/esm2020/lib/elements/projects/controls/tabs/dfs-modifiers/dfs-modifiers.component.mjs +2 -4
- package/esm2020/lib/services/applications-flow.service.mjs +2 -22
- package/esm2020/lib/services/eac.service.mjs +53 -13
- package/esm2020/lib/services/project.service.mjs +1 -81
- package/fesm2015/lowcodeunit-applications-flow-common.mjs +85 -148
- package/fesm2015/lowcodeunit-applications-flow-common.mjs.map +1 -1
- package/fesm2020/lowcodeunit-applications-flow-common.mjs +83 -146
- package/fesm2020/lowcodeunit-applications-flow-common.mjs.map +1 -1
- package/lib/dialogs/source-control-dialog/source-control-dialog.component.d.ts +2 -1
- package/lib/elements/main-feed-card/main-feed-card.component.d.ts +1 -1
- package/lib/services/applications-flow.service.d.ts +0 -4
- package/lib/services/eac.service.d.ts +5 -4
- package/lib/services/project.service.d.ts +0 -4
- package/package.json +1 -1
|
@@ -209,33 +209,13 @@ class ApplicationsFlowService {
|
|
|
209
209
|
headers: this.loadHeaders(),
|
|
210
210
|
});
|
|
211
211
|
}
|
|
212
|
-
DeleteApplication(appLookup) {
|
|
213
|
-
return this.http.delete(`${this.apiRoot}/api/lowcodeunit/manage/applications/${appLookup}`, {
|
|
214
|
-
headers: this.loadHeaders(),
|
|
215
|
-
});
|
|
216
|
-
}
|
|
217
|
-
DeleteDevOpsAction(doaLookup) {
|
|
218
|
-
return this.http.delete(`${this.apiRoot}/api/lowcodeunit/manage/devops-actions/${doaLookup}`, {
|
|
219
|
-
headers: this.loadHeaders(),
|
|
220
|
-
});
|
|
221
|
-
}
|
|
222
|
-
DeleteProject(projectLookup) {
|
|
223
|
-
return this.http.delete(`${this.apiRoot}/api/lowcodeunit/manage/projects/${projectLookup}`, {
|
|
224
|
-
headers: this.loadHeaders(),
|
|
225
|
-
});
|
|
226
|
-
}
|
|
227
|
-
DeleteSourceControl(scLookup) {
|
|
228
|
-
return this.http.delete(`${this.apiRoot}/api/lowcodeunit/manage/source-controls/${scLookup}`, {
|
|
229
|
-
headers: this.loadHeaders(),
|
|
230
|
-
});
|
|
231
|
-
}
|
|
232
212
|
EnsureUserEnterprise() {
|
|
233
213
|
return this.http.post(`${this.apiRoot}/api/lowcodeunit/manage/enterprise/ensure`, {}, {
|
|
234
214
|
headers: this.loadHeaders(),
|
|
235
215
|
});
|
|
236
216
|
}
|
|
237
217
|
EnterpriseAsCodeRemovals(removals) {
|
|
238
|
-
return this.http.post(`${this.apiRoot}/api/lowcodeunit/
|
|
218
|
+
return this.http.post(`${this.apiRoot}/api/lowcodeunit/removals/eac`, removals, {
|
|
239
219
|
headers: this.loadHeaders(),
|
|
240
220
|
});
|
|
241
221
|
}
|
|
@@ -363,88 +343,6 @@ class ProjectService {
|
|
|
363
343
|
// }
|
|
364
344
|
// });
|
|
365
345
|
// }
|
|
366
|
-
DeleteApplication(state, appLookup) {
|
|
367
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
368
|
-
return new Promise((resolve, reject) => {
|
|
369
|
-
state.Loading = true;
|
|
370
|
-
this.appsFlowSvc.DeleteApplication(appLookup).subscribe((response) => __awaiter(this, void 0, void 0, function* () {
|
|
371
|
-
if (response.Status.Code === 0) {
|
|
372
|
-
const eac = yield this.LoadEnterpriseAsCode(state);
|
|
373
|
-
resolve(eac);
|
|
374
|
-
}
|
|
375
|
-
else {
|
|
376
|
-
state.Loading = false;
|
|
377
|
-
reject(response.Status);
|
|
378
|
-
console.log(response);
|
|
379
|
-
}
|
|
380
|
-
}), (err) => {
|
|
381
|
-
state.Loading = false;
|
|
382
|
-
reject(err);
|
|
383
|
-
console.log(err);
|
|
384
|
-
});
|
|
385
|
-
});
|
|
386
|
-
});
|
|
387
|
-
}
|
|
388
|
-
DeleteDevOpsAction(state, doaLookup) {
|
|
389
|
-
return new Promise((resolve, reject) => {
|
|
390
|
-
state.Loading = true;
|
|
391
|
-
this.appsFlowSvc.DeleteDevOpsAction(doaLookup).subscribe((response) => __awaiter(this, void 0, void 0, function* () {
|
|
392
|
-
if (response.Status.Code === 0) {
|
|
393
|
-
const eac = yield this.LoadEnterpriseAsCode(state);
|
|
394
|
-
resolve(eac);
|
|
395
|
-
}
|
|
396
|
-
else {
|
|
397
|
-
state.Loading = false;
|
|
398
|
-
reject(response.Status);
|
|
399
|
-
console.log(response);
|
|
400
|
-
}
|
|
401
|
-
}), (err) => {
|
|
402
|
-
state.Loading = false;
|
|
403
|
-
reject(err);
|
|
404
|
-
console.log(err);
|
|
405
|
-
});
|
|
406
|
-
});
|
|
407
|
-
}
|
|
408
|
-
DeleteProject(state, projectLookup) {
|
|
409
|
-
return new Promise((resolve, reject) => {
|
|
410
|
-
state.Loading = true;
|
|
411
|
-
this.appsFlowSvc.DeleteProject(projectLookup).subscribe((response) => __awaiter(this, void 0, void 0, function* () {
|
|
412
|
-
if (response.Status.Code === 0) {
|
|
413
|
-
const eac = yield this.LoadEnterpriseAsCode(state);
|
|
414
|
-
resolve(eac);
|
|
415
|
-
}
|
|
416
|
-
else {
|
|
417
|
-
state.Loading = false;
|
|
418
|
-
reject(response.Status);
|
|
419
|
-
console.log(response);
|
|
420
|
-
}
|
|
421
|
-
}), (err) => {
|
|
422
|
-
state.Loading = false;
|
|
423
|
-
reject(err);
|
|
424
|
-
console.log(err);
|
|
425
|
-
});
|
|
426
|
-
});
|
|
427
|
-
}
|
|
428
|
-
DeleteSourceControl(state, scLookup) {
|
|
429
|
-
return new Promise((resolve, reject) => {
|
|
430
|
-
state.Loading = true;
|
|
431
|
-
this.appsFlowSvc.DeleteSourceControl(scLookup).subscribe((response) => __awaiter(this, void 0, void 0, function* () {
|
|
432
|
-
if (response.Status.Code === 0) {
|
|
433
|
-
const eac = yield this.LoadEnterpriseAsCode(state);
|
|
434
|
-
resolve(eac);
|
|
435
|
-
}
|
|
436
|
-
else {
|
|
437
|
-
state.Loading = false;
|
|
438
|
-
reject(response.Status);
|
|
439
|
-
console.log(response);
|
|
440
|
-
}
|
|
441
|
-
}), (err) => {
|
|
442
|
-
state.Loading = false;
|
|
443
|
-
reject(err);
|
|
444
|
-
console.log(err);
|
|
445
|
-
});
|
|
446
|
-
});
|
|
447
|
-
}
|
|
448
346
|
EnsureUserEnterprise(state) {
|
|
449
347
|
return new Promise((resolve, reject) => {
|
|
450
348
|
state.Loading = true;
|
|
@@ -954,28 +852,70 @@ class EaCService {
|
|
|
954
852
|
DeleteApplication(appLookup, appName) {
|
|
955
853
|
return __awaiter(this, void 0, void 0, function* () {
|
|
956
854
|
if (confirm(`Are you sure you want to delete application '${appName}'?`)) {
|
|
957
|
-
|
|
855
|
+
const eac = {
|
|
856
|
+
EnterpriseLookup: this.State.EaC.EnterpriseLookup,
|
|
857
|
+
Applications: {},
|
|
858
|
+
};
|
|
859
|
+
eac.Applications[appLookup] = {
|
|
860
|
+
Application: {},
|
|
861
|
+
};
|
|
862
|
+
return yield this.projectService.EnterpriseAsCodeRemovals(this.State, eac);
|
|
863
|
+
}
|
|
864
|
+
});
|
|
865
|
+
}
|
|
866
|
+
DeleteDevOpsAction(doaLookup, doaName) {
|
|
867
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
868
|
+
if (confirm(`Are you sure you want to delete Build Pipeline '${doaName}'?`)) {
|
|
869
|
+
const eac = {
|
|
870
|
+
EnterpriseLookup: this.State.EaC.EnterpriseLookup,
|
|
871
|
+
Environments: {},
|
|
872
|
+
};
|
|
873
|
+
eac.Environments[this.State.EaC.Enterprise.PrimaryEnvironment] = {
|
|
874
|
+
DevOpsActions: {},
|
|
875
|
+
};
|
|
876
|
+
eac.Environments[this.State.EaC.Enterprise.PrimaryEnvironment].DevOpsActions[doaLookup] = {};
|
|
877
|
+
return yield this.projectService.EnterpriseAsCodeRemovals(this.State, eac);
|
|
958
878
|
}
|
|
959
879
|
});
|
|
960
880
|
}
|
|
961
|
-
|
|
881
|
+
DeleteModifier(modifierLookup, modifierName) {
|
|
962
882
|
return __awaiter(this, void 0, void 0, function* () {
|
|
963
|
-
if (confirm(`Are you sure you want to delete
|
|
964
|
-
|
|
883
|
+
if (confirm(`Are you sure you want to delete Modifier '${modifierName}'?`)) {
|
|
884
|
+
const eac = {
|
|
885
|
+
EnterpriseLookup: this.State.EaC.EnterpriseLookup,
|
|
886
|
+
Modifiers: {},
|
|
887
|
+
};
|
|
888
|
+
eac.Modifiers[modifierLookup] = {};
|
|
889
|
+
return yield this.projectService.EnterpriseAsCodeRemovals(this.State, eac);
|
|
965
890
|
}
|
|
966
891
|
});
|
|
967
892
|
}
|
|
968
|
-
DeleteProject(projectLookup) {
|
|
893
|
+
DeleteProject(projectLookup, projectName) {
|
|
969
894
|
return __awaiter(this, void 0, void 0, function* () {
|
|
970
|
-
if (confirm(`Are you sure you want to delete Project '${
|
|
971
|
-
|
|
895
|
+
if (confirm(`Are you sure you want to delete Project '${projectName}'?`)) {
|
|
896
|
+
const eac = {
|
|
897
|
+
EnterpriseLookup: this.State.EaC.EnterpriseLookup,
|
|
898
|
+
Projects: {},
|
|
899
|
+
};
|
|
900
|
+
eac.Projects[projectLookup] = {
|
|
901
|
+
Project: {},
|
|
902
|
+
};
|
|
903
|
+
return yield this.projectService.EnterpriseAsCodeRemovals(this.State, eac);
|
|
972
904
|
}
|
|
973
905
|
});
|
|
974
906
|
}
|
|
975
|
-
DeleteSourceControl(
|
|
907
|
+
DeleteSourceControl(srcLookup, srcName) {
|
|
976
908
|
return __awaiter(this, void 0, void 0, function* () {
|
|
977
|
-
if (confirm(`Are you sure you want to delete Source Control '${
|
|
978
|
-
|
|
909
|
+
if (confirm(`Are you sure you want to delete Source Control '${srcName}'?`)) {
|
|
910
|
+
const eac = {
|
|
911
|
+
EnterpriseLookup: this.State.EaC.EnterpriseLookup,
|
|
912
|
+
Environments: {},
|
|
913
|
+
};
|
|
914
|
+
eac.Environments[this.State.EaC.Enterprise.PrimaryEnvironment] = {
|
|
915
|
+
Sources: {},
|
|
916
|
+
};
|
|
917
|
+
eac.Environments[this.State.EaC.Enterprise.PrimaryEnvironment].Sources[srcLookup] = {};
|
|
918
|
+
return yield this.projectService.EnterpriseAsCodeRemovals(this.State, eac);
|
|
979
919
|
}
|
|
980
920
|
});
|
|
981
921
|
}
|
|
@@ -989,7 +929,7 @@ class EaCService {
|
|
|
989
929
|
}
|
|
990
930
|
EnterpriseAsCodeRemovals(eac) {
|
|
991
931
|
return __awaiter(this, void 0, void 0, function* () {
|
|
992
|
-
return
|
|
932
|
+
return this.projectService.EnterpriseAsCodeRemovals(this.State, eac);
|
|
993
933
|
});
|
|
994
934
|
}
|
|
995
935
|
GetActiveEnterprise() {
|
|
@@ -1106,7 +1046,7 @@ class EaCService {
|
|
|
1106
1046
|
saveEaC.Modifiers[req.ModifierLookups[0]] = req.Modifier;
|
|
1107
1047
|
}
|
|
1108
1048
|
if (req.ProjectLookups) {
|
|
1109
|
-
req.ProjectLookups.forEach(lookup => {
|
|
1049
|
+
req.ProjectLookups.forEach((lookup) => {
|
|
1110
1050
|
saveEaC.Projects[lookup] = {
|
|
1111
1051
|
ModifierLookups: req.ModifierLookups,
|
|
1112
1052
|
};
|
|
@@ -1182,9 +1122,7 @@ class ProjectItemsComponent {
|
|
|
1182
1122
|
}
|
|
1183
1123
|
// API Methods
|
|
1184
1124
|
DeleteProject(projectLookup, projectName) {
|
|
1185
|
-
|
|
1186
|
-
this.eacSvc.DeleteProject(projectLookup);
|
|
1187
|
-
}
|
|
1125
|
+
this.eacSvc.DeleteProject(projectLookup, projectName).then();
|
|
1188
1126
|
}
|
|
1189
1127
|
GetPrimaryHost(project) {
|
|
1190
1128
|
return project.Hosts[project.Hosts.length - 1];
|
|
@@ -2650,9 +2588,11 @@ class DevOpsComponent {
|
|
|
2650
2588
|
this.SetEditingSourceControl(Guid.CreateRaw());
|
|
2651
2589
|
}
|
|
2652
2590
|
DeleteSourceControl(scLookup) {
|
|
2653
|
-
if (
|
|
2654
|
-
|
|
2655
|
-
|
|
2591
|
+
// if (
|
|
2592
|
+
// confirm(`Are you sure you want to delete source control '${scLookup}'?`)
|
|
2593
|
+
// ) {
|
|
2594
|
+
// this.eacSvc.DeleteSourceControl(scLookup);
|
|
2595
|
+
// }
|
|
2656
2596
|
}
|
|
2657
2597
|
DevOpsActionLookupChanged(event) {
|
|
2658
2598
|
this.configureDevOpsAction();
|
|
@@ -2842,9 +2782,7 @@ class DFSModifiersComponent {
|
|
|
2842
2782
|
this.SetEditingModifier(Guid.CreateRaw());
|
|
2843
2783
|
}
|
|
2844
2784
|
DeleteModifier(modifierLookup, modifierName) {
|
|
2845
|
-
|
|
2846
|
-
this.eacSvc.DeleteSourceControl(modifierLookup);
|
|
2847
|
-
}
|
|
2785
|
+
this.eacSvc.DeleteModifier(modifierLookup, modifierName).then();
|
|
2848
2786
|
}
|
|
2849
2787
|
SaveModifier(projectLookup = null) {
|
|
2850
2788
|
const saveMdfrReq = {
|
|
@@ -4345,22 +4283,22 @@ class SourceControlDialogComponent {
|
|
|
4345
4283
|
get State() {
|
|
4346
4284
|
return this.eacSvc.State;
|
|
4347
4285
|
}
|
|
4348
|
-
ngOnInit() {
|
|
4349
|
-
}
|
|
4286
|
+
ngOnInit() { }
|
|
4350
4287
|
CloseDialog() {
|
|
4351
4288
|
this.dialogRef.close();
|
|
4352
4289
|
}
|
|
4353
|
-
DeleteSourceControl(
|
|
4354
|
-
|
|
4355
|
-
this.
|
|
4290
|
+
DeleteSourceControl() {
|
|
4291
|
+
this.eacSvc
|
|
4292
|
+
.DeleteSourceControl(this.data.scLookup, this.data.scName)
|
|
4293
|
+
.then((status) => {
|
|
4356
4294
|
this.CloseDialog();
|
|
4357
|
-
}
|
|
4295
|
+
});
|
|
4358
4296
|
}
|
|
4359
4297
|
HandleSaveStatusEvent(event) {
|
|
4360
|
-
console.log(
|
|
4298
|
+
console.log('event to save: ', event);
|
|
4361
4299
|
if (event.Code === 0) {
|
|
4362
|
-
this.snackBar.open(
|
|
4363
|
-
duration: 5000
|
|
4300
|
+
this.snackBar.open('Source Control Succesfully Saved', 'Dismiss', {
|
|
4301
|
+
duration: 5000,
|
|
4364
4302
|
});
|
|
4365
4303
|
this.CloseDialog();
|
|
4366
4304
|
}
|
|
@@ -4373,10 +4311,10 @@ class SourceControlDialogComponent {
|
|
|
4373
4311
|
}
|
|
4374
4312
|
}
|
|
4375
4313
|
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 });
|
|
4376
|
-
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: "
|
|
4314
|
+
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"] }] });
|
|
4377
4315
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: SourceControlDialogComponent, decorators: [{
|
|
4378
4316
|
type: Component,
|
|
4379
|
-
args: [{ selector: 'lcu-source-control-dialog', template: "
|
|
4317
|
+
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"] }]
|
|
4380
4318
|
}], ctorParameters: function () {
|
|
4381
4319
|
return [{ type: i2$3.MatDialogRef }, { type: EaCService }, { type: undefined, decorators: [{
|
|
4382
4320
|
type: Inject,
|
|
@@ -4458,20 +4396,21 @@ class MainFeedCardComponent {
|
|
|
4458
4396
|
}
|
|
4459
4397
|
else if (action.ActionType == 'Modal') {
|
|
4460
4398
|
if (action.Action == 'AddSourceControl') {
|
|
4461
|
-
this.OpenSourceControlDialog(null);
|
|
4399
|
+
this.OpenSourceControlDialog(null, null);
|
|
4462
4400
|
}
|
|
4463
4401
|
else {
|
|
4464
4402
|
alert('other modaled ' + action.Action);
|
|
4465
4403
|
}
|
|
4466
4404
|
}
|
|
4467
4405
|
}
|
|
4468
|
-
OpenSourceControlDialog(scLookup) {
|
|
4406
|
+
OpenSourceControlDialog(scLookup, scName) {
|
|
4469
4407
|
const dialogRef = this.dialog.open(SourceControlDialogComponent, {
|
|
4470
4408
|
width: '550px',
|
|
4471
4409
|
data: {
|
|
4472
4410
|
environment: this.Environment,
|
|
4473
4411
|
environmentLookup: this.ActiveEnvironmentLookup,
|
|
4474
4412
|
scLookup: scLookup,
|
|
4413
|
+
scName: scName,
|
|
4475
4414
|
},
|
|
4476
4415
|
});
|
|
4477
4416
|
dialogRef.afterClosed().subscribe((result) => {
|
|
@@ -5379,22 +5318,22 @@ class BuildPipelineDialogComponent {
|
|
|
5379
5318
|
get State() {
|
|
5380
5319
|
return this.eacSvc.State;
|
|
5381
5320
|
}
|
|
5382
|
-
ngOnInit() {
|
|
5383
|
-
}
|
|
5321
|
+
ngOnInit() { }
|
|
5384
5322
|
CloseDialog() {
|
|
5385
5323
|
this.dialogRef.close();
|
|
5386
5324
|
}
|
|
5387
5325
|
DeleteDevOpsAction() {
|
|
5388
|
-
|
|
5389
|
-
|
|
5326
|
+
this.eacSvc
|
|
5327
|
+
.DeleteDevOpsAction(this.data.devopsActionLookup, this.data.doaName)
|
|
5328
|
+
.then((status) => {
|
|
5390
5329
|
this.CloseDialog();
|
|
5391
|
-
}
|
|
5330
|
+
});
|
|
5392
5331
|
}
|
|
5393
5332
|
HandleResponseEvent(event) {
|
|
5394
|
-
console.log(
|
|
5333
|
+
console.log('Response Event: ', event);
|
|
5395
5334
|
if (event.Code === 0) {
|
|
5396
|
-
this.snackBar.open(
|
|
5397
|
-
duration: 5000
|
|
5335
|
+
this.snackBar.open('Build Pipeline Created Succesfully', 'Dismiss', {
|
|
5336
|
+
duration: 5000,
|
|
5398
5337
|
});
|
|
5399
5338
|
this.CloseDialog();
|
|
5400
5339
|
}
|
|
@@ -6597,9 +6536,7 @@ class DFSModifiersFormComponent {
|
|
|
6597
6536
|
this.SetEditingModifier(Guid.CreateRaw());
|
|
6598
6537
|
}
|
|
6599
6538
|
DeleteModifier(modifierLookup, modifierName) {
|
|
6600
|
-
|
|
6601
|
-
this.eacSvc.DeleteSourceControl(modifierLookup);
|
|
6602
|
-
}
|
|
6539
|
+
this.eacSvc.DeleteModifier(modifierLookup, modifierName).then();
|
|
6603
6540
|
}
|
|
6604
6541
|
SaveModifierForAllProjects(projectLookups) {
|
|
6605
6542
|
const saveMdfrReq = {
|