From b7640e9d8b6b8cd16870333521ccef0f689df08b Mon Sep 17 00:00:00 2001
From: Julian Matschinske <ge93nar@mytum.de>
Date: Sat, 11 Apr 2020 00:28:25 +0200
Subject: [PATCH] Add icon to launch button, add warning for KPM

---
 .../launch-analysis.component.html             | 18 +++++++++++++++---
 1 file changed, 15 insertions(+), 3 deletions(-)

diff --git a/src/app/components/launch-analysis/launch-analysis.component.html b/src/app/components/launch-analysis/launch-analysis.component.html
index cf60b572..1806915e 100644
--- a/src/app/components/launch-analysis/launch-analysis.component.html
+++ b/src/app/components/launch-analysis/launch-analysis.component.html
@@ -35,6 +35,13 @@
         </div>
       </div>
 
+      <div *ngIf="algorithm === 'keypathwayminer' && hasBaits">
+        <div class="notification is-warning warning">
+          You have selected <i class="fa fa-virus"></i> viral proteins.
+          If you want to use KeyPathwayMiner, please remove them because it cannot process them.
+        </div>
+      </div>
+
       <div *ngIf="algorithm==='trustrank'">
         <div class="field" *ngIf="target === 'drug'">
           <label class="label">Indirect Drugs</label>
@@ -145,10 +152,15 @@
     <footer class="modal-card-foot">
       <button (click)="startTask(); close()" class="button is-success is-rounded has-tooltip"
               data-tooltip="Run the analysis."
-              [disabled]="(target === 'drug' && hasBaits) || !analysis.canLaunchTask()">Launch
-      </button>
-      <button (click)="close()" class="button is-rounded has-tooltip" data-tooltip="Close the current window.">Close
+              [disabled]="(target === 'drug' && hasBaits) || !analysis.canLaunchTask() || (algorithm === 'keypathwayminer' && hasBaits)">
+        <span class="icon">
+          <i class="fa fa-rocket"></i>
+        </span>
+        <span>
+          Launch
+        </span>
       </button>
+      <button (click)="close()" class="button is-rounded has-tooltip" data-tooltip="Close the current window.">Close</button>
     </footer>
   </div>
 </div>
-- 
GitLab