Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
toaster.warning("All Workers are successfully paused :)");
} else if (action === "resume") {
toaster.success("All Workers are successfully resumed :)");
}
} else {
// If action is applied individually
if (action === "pause") {
toaster.warning("Worker " + worker_id + " is successfully paused :)");
} else if (action === "resume") {
toaster.success("Worker " + worker_id + " is successfully resumed :)");
} else if (action === "abort") {
toaster.notify("Worker " + worker_id + " is successfully aborted :)");
} else if (action === "delete") {
toaster.notify("Worker " + worker_id + " is successfully deleted :)");
} else if (action === "create") {
toaster.notify("Worker is successfully added :)");
}
}
}
setTimeout(() => {
if (this.props.deleteError === false) {
toaster.notify("Work is successfully deleted :)");
} else {
toaster.danger("Server replied: " + this.props.deleteError);
}
}, 500);
}
onSelect={() => toaster.notify('Move')}
icon='ban-circle'
setTimeout(() => {
if (this.props.deleteError === false) {
toaster.notify("All Works are successfully deleted :)");
} else {
toaster.danger("Server replied: " + this.props.deleteError);
}
}, 500);
}