Skip to content

Commit

Permalink
[FLINK-3028] [runtime-web] Show cancel button for restarting jobs
Browse files Browse the repository at this point in the history
This closes apache#1369
  • Loading branch information
uce committed Nov 19, 2015
1 parent 9abbeac commit c64fe3e
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 78 deletions.
2 changes: 1 addition & 1 deletion flink-runtime-web/web-dashboard/app/partials/jobs/job.jade
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ nav.navbar.navbar-default.navbar-fixed-top.navbar-main(ng-if="job")
.navbar-info.last.first(ng-if="job.duration > -1" title="{{job.duration | humanizeDuration:false}}")
| {{job.duration | humanizeDuration:true}}

.navbar-info.last.first(ng-if="job.state=='RUNNING' || job.state=='CREATED'")
.navbar-info.last.first(ng-if="job.state=='RUNNING' || job.state=='CREATED' || job.state=='RESTARTING'")
span.navbar-info-button.btn.btn-default(ng-click="cancelJob($event)")
| Cancel

Expand Down
2 changes: 1 addition & 1 deletion flink-runtime-web/web-dashboard/web/partials/jobs/job.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
-
{{ job['end-time'] | amDateFormat:'YYYY-MM-DD, H:mm:ss' }}</span></div>
<div ng-if="job.duration &gt; -1" title="{{job.duration | humanizeDuration:false}}" class="navbar-info last first">{{job.duration | humanizeDuration:true}}</div>
<div ng-if="job.state=='RUNNING' || job.state=='CREATED'" class="navbar-info last first"><span ng-click="cancelJob($event)" class="navbar-info-button btn btn-default">Cancel</span></div>
<div ng-if="job.state=='RUNNING' || job.state=='CREATED' || job.state=='RESTARTING'" class="navbar-info last first"><span ng-click="cancelJob($event)" class="navbar-info-button btn btn-default">Cancel</span></div>
</nav>
<nav ng-if="job" class="navbar navbar-default navbar-fixed-top navbar-main-additional">
<ul class="nav nav-tabs">
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit c64fe3e

Please sign in to comment.