Skip to content
This repository has been archived by the owner on Sep 19, 2018. It is now read-only.

Commit

Permalink
fixed cancel (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikestopcontinues authored and sinemetu1 committed Nov 1, 2016
1 parent 8423e08 commit 126174d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
3 changes: 3 additions & 0 deletions ui/modules/www/JobsHelper/JobsHelper.js
Expand Up @@ -234,6 +234,7 @@ export function formatRun(run) {

export function formatLast(run) {
return formatRun({
run,
id: run.jobId,
jobId: run.plannedJob.jobSpec.id,
enabled: run.plannedJob.jobSpec.enabled,
Expand All @@ -250,6 +251,7 @@ export function formatLast(run) {

export function formatQueue(run) {
return formatRun({
run,
id: null,
jobId: run.jobSpec.id,
name: run.jobSpec.name,
Expand All @@ -263,6 +265,7 @@ export function formatQueue(run) {

export function formatNext(run) {
return formatRun({
run,
name: run.name,
time: run.time ? moment(run.time) : null,
attemptNumber: run.attemptNumber,
Expand Down
4 changes: 2 additions & 2 deletions ui/modules/www/RunStore/RunStore.js
Expand Up @@ -184,10 +184,10 @@ export const cancelRun = createRequestAction({
endpoint: '/api/queue',
method: 'delete',
staticUrl: true,
requestFn(job) {
requestFn(run) {
return {
id: null,
send: job.plannedJob || job,
send: run.run || run,
};
},
successFn(action) {
Expand Down
6 changes: 5 additions & 1 deletion ui/webpack.config.babel.js
Expand Up @@ -113,7 +113,11 @@ export default {
postcssCssnano({
autoprefixer: false,
}),
postcssReporter(),
postcssReporter({
plugins: [
'!postcss-discard-empty',
],
}),
];
},

Expand Down

0 comments on commit 126174d

Please sign in to comment.