From 8ad3e259b1578c8668c5f2b5ee48260ce7620037 Mon Sep 17 00:00:00 2001 From: tillias <ternovich@gmail.com> Date: Tue, 3 Nov 2020 20:26:20 +0100 Subject: [PATCH] Edit button disabled when no microservice is selected #89 --- .../dependency-dashboard/dependency-dashboard.component.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/webapp/app/dashboard/dependency-dashboard/dependency-dashboard.component.html b/src/main/webapp/app/dashboard/dependency-dashboard/dependency-dashboard.component.html index 0ffe92f..9607662 100644 --- a/src/main/webapp/app/dashboard/dependency-dashboard/dependency-dashboard.component.html +++ b/src/main/webapp/app/dashboard/dependency-dashboard/dependency-dashboard.component.html @@ -23,7 +23,7 @@ </button> </div> <div class="pt-2"> - <button class="btn btn-block btn-success btn-sm" [routerLink]="['/microservice',selectedNodeId(), 'edit']"> + <button class="btn btn-block btn-success btn-sm" [disabled]="!nodeSelection?.hasNodes()" [routerLink]="['/microservice',selectedNodeId(), 'edit']"> Edit microservice </button> </div>