diff --git a/web/app/src/assets/base.css b/web/app/src/assets/base.css index 14d37ce4..ba143c45 100644 --- a/web/app/src/assets/base.css +++ b/web/app/src/assets/base.css @@ -371,6 +371,8 @@ input[type="text"].is-invalid { .input-help-text { display: inline-block; +} +.input-help-text, .hint { color: var(--color-text-muted); font-size: var(--font-size-sm); margin: var(--spacer-xs); diff --git a/web/app/src/components/workers/WorkerDetails.vue b/web/app/src/components/workers/WorkerDetails.vue index ec692887..c9f9d240 100644 --- a/web/app/src/components/workers/WorkerDetails.vue +++ b/web/app/src/components/workers/WorkerDetails.vue @@ -34,7 +34,7 @@ -
+

@@ -95,6 +95,22 @@

+ +
+

Maintenance

+

{{ workerData.name }} is {{ workerData.status }}, which means + + +

+

+

+ When a Worker is removed from the system, any active task still assigned + to it will be requeued. Restarting the Worker after removing it from the + system will simply register it anew. +

+
@@ -204,6 +220,16 @@ export default { defaultWorkerSleepSchedule() { return new WorkerSleepSchedule(false, '', '', '') // Default values in OpenAPI }, + deleteWorker() { + let msg = `Are you sure you want to remove ${this.workerData.name}?`; + if (this.workerData.status != "offline") { + msg += "\nRemoving it without first shutting it down will cause it to log errors."; + } + if (!confirm(msg)) { + return; + } + this.api.deleteWorker(this.workerData.id); + }, } };