diff --git a/src/main/webapp/app/dashboard/dependency-dashboard/create-dependency-dialog/create-dependency-dialog.component.html b/src/main/webapp/app/dashboard/dependency-dashboard/create-dependency-dialog/create-dependency-dialog.component.html
index 131852b..f9bc164 100644
--- a/src/main/webapp/app/dashboard/dependency-dashboard/create-dependency-dialog/create-dependency-dialog.component.html
+++ b/src/main/webapp/app/dashboard/dependency-dashboard/create-dependency-dialog/create-dependency-dialog.component.html
@@ -10,14 +10,14 @@
Create dependency
@@ -26,5 +26,6 @@ Create dependency
(click)="createDependency()">Create
+
diff --git a/src/main/webapp/app/dashboard/dependency-dashboard/create-dependency-dialog/create-dependency-dialog.component.ts b/src/main/webapp/app/dashboard/dependency-dashboard/create-dependency-dialog/create-dependency-dialog.component.ts
index 0304aa5..8152c8a 100644
--- a/src/main/webapp/app/dashboard/dependency-dashboard/create-dependency-dialog/create-dependency-dialog.component.ts
+++ b/src/main/webapp/app/dashboard/dependency-dashboard/create-dependency-dialog/create-dependency-dialog.component.ts
@@ -67,4 +67,12 @@ export class CreateDependencyDialogComponent implements OnInit {
updateName(): void {
this.name = `${this.source?.name} -> ${this.target?.name}`;
}
+
+ swap(): void {
+ const tmp = this.target;
+ this.target = this.source;
+ this.source = tmp;
+
+ this.updateName();
+ }
}
diff --git a/src/main/webapp/app/entities/microservice/microservice-dashboard/microservice-search/microservice-search.component.ts b/src/main/webapp/app/entities/microservice/microservice-dashboard/microservice-search/microservice-search.component.ts
index b1f662b..7b39f55 100644
--- a/src/main/webapp/app/entities/microservice/microservice-dashboard/microservice-search/microservice-search.component.ts
+++ b/src/main/webapp/app/entities/microservice/microservice-dashboard/microservice-search/microservice-search.component.ts
@@ -17,16 +17,16 @@ export class MicroserviceSearchComponent implements OnInit {
* Enables advanced search capabilities. Default: false
*/
@Input() advanced = false;
- @Input() initialValue?: IMicroservice;
@Output() itemSelected = new EventEmitter();
@Output() groupFilterChanged = new EventEmitter();
constructor(protected microserviceService: MicroserviceService) {}
- ngOnInit(): void {
- if (this.initialValue) {
- this.model = this.initialValue;
- }
+ ngOnInit(): void {}
+
+ @Input()
+ set initialValue(value: IMicroservice) {
+ this.model = value;
}
search = (text$: Observable) =>