From 7b3045d2a2e390e84b39eafc07bf46e3585282ee Mon Sep 17 00:00:00 2001 From: Steffen Waterkamp Date: Mon, 11 Jun 2018 13:43:00 +0200 Subject: [PATCH] Show Resume button if task status in "Interrupted" --- ng/src/web/pages/tasks/icons/resumeicon.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ng/src/web/pages/tasks/icons/resumeicon.js b/ng/src/web/pages/tasks/icons/resumeicon.js index f0f04b5bc0..e7d3ff7ba5 100644 --- a/ng/src/web/pages/tasks/icons/resumeicon.js +++ b/ng/src/web/pages/tasks/icons/resumeicon.js @@ -2,9 +2,10 @@ * * Authors: * Björn Ricks + * Steffen Waterkamp * * Copyright: - * Copyright (C) 2017 Greenbone Networks GmbH + * Copyright (C) 2017 - 2018 Greenbone Networks GmbH * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -33,7 +34,7 @@ import Icon from '../../../components/icon/icon.js'; const ResumeIcon = ({ size, task, - onClick + onClick, }, {capabilities}) => { if (task.isContainer()) { @@ -56,7 +57,7 @@ const ResumeIcon = ({ ); } - if (task.isStopped()) { + if (task.isStopped() || task.isInterrupted()) { if (capabilities.mayOp('resume_task')) { return (