Skip to content

Commit

Permalink
Show Resume button if task status in "Interrupted"
Browse files Browse the repository at this point in the history
  • Loading branch information
swaterkamp committed Jun 11, 2018
1 parent bc86040 commit 7b3045d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ng/src/web/pages/tasks/icons/resumeicon.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
*
* Authors:
* Björn Ricks <bjoern.ricks@greenbone.net>
* Steffen Waterkamp <steffen.waterkamp@greenbone.net>
*
* 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
Expand Down Expand Up @@ -33,7 +34,7 @@ import Icon from '../../../components/icon/icon.js';
const ResumeIcon = ({
size,
task,
onClick
onClick,
}, {capabilities}) => {

if (task.isContainer()) {
Expand All @@ -56,7 +57,7 @@ const ResumeIcon = ({
);
}

if (task.isStopped()) {
if (task.isStopped() || task.isInterrupted()) {
if (capabilities.mayOp('resume_task')) {
return (
<Icon
Expand Down

0 comments on commit 7b3045d

Please sign in to comment.