mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
make stop job message clearer (#12252)
This commit is contained in:
committed by
GitHub
parent
47b07f5595
commit
17347c5ff2
3
.changelog/12252.txt
Normal file
3
.changelog/12252.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
```release-note:improvement
|
||||
ui: make buttons with confirmation more descriptive of their actions
|
||||
```
|
||||
@@ -42,9 +42,9 @@
|
||||
<TwoStepButton
|
||||
data-test-stop
|
||||
@alignRight={{true}}
|
||||
@idleText="Stop"
|
||||
@cancelText="Cancel"
|
||||
@confirmText="Yes, Stop"
|
||||
@idleText="Stop Alloc"
|
||||
@cancelText="Cancel Stop"
|
||||
@confirmText="Yes, Stop Alloc"
|
||||
@confirmationMessage="Are you sure? This will reschedule the allocation on a different client."
|
||||
@awaitingConfirmation={{this.stopAllocation.isRunning}}
|
||||
@disabled={{or
|
||||
@@ -56,9 +56,9 @@
|
||||
<TwoStepButton
|
||||
data-test-restart
|
||||
@alignRight={{true}}
|
||||
@idleText="Restart"
|
||||
@cancelText="Cancel"
|
||||
@confirmText="Yes, Restart"
|
||||
@idleText="Restart Alloc"
|
||||
@cancelText="Cancel Restart"
|
||||
@confirmText="Yes, Restart Alloc"
|
||||
@confirmationMessage="Are you sure? This will restart the allocation in-place."
|
||||
@awaitingConfirmation={{this.restartAllocation.isRunning}}
|
||||
@disabled={{or
|
||||
|
||||
@@ -53,9 +53,9 @@
|
||||
<TwoStepButton
|
||||
data-test-restart
|
||||
@alignRight={{true}}
|
||||
@idleText="Restart"
|
||||
@idleText="Restart Task"
|
||||
@cancelText="Cancel"
|
||||
@confirmText="Yes, Restart"
|
||||
@confirmText="Yes, Restart Task"
|
||||
@confirmationMessage="Are you sure? This will restart the task in-place."
|
||||
@awaitingConfirmation={{this.restartTask.isRunning}}
|
||||
@disabled={{this.restartTask.isRunning}}
|
||||
|
||||
@@ -197,7 +197,7 @@
|
||||
data-test-drain-stop
|
||||
@idleText="Stop Drain"
|
||||
@cancelText="Cancel"
|
||||
@confirmText="Yes, Stop"
|
||||
@confirmText="Yes, Stop Drain"
|
||||
@confirmationMessage="Are you sure you want to stop this drain?"
|
||||
@awaitingConfirmation={{this.stopDrain.isRunning}}
|
||||
@onConfirm={{perform this.stopDrain}}
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
confirmButton="is-danger"}}
|
||||
@idleText="Fail Deployment"
|
||||
@cancelText="Cancel"
|
||||
@confirmText="Yes, Fail"
|
||||
@confirmText="Yes, Fail Deployment"
|
||||
@confirmationMessage="Are you sure?"
|
||||
@inlineText={{true}}
|
||||
@awaitingConfirmation={{this.fail.isRunning}}
|
||||
|
||||
@@ -18,9 +18,9 @@
|
||||
<TwoStepButton
|
||||
data-test-stop
|
||||
@alignRight={{true}}
|
||||
@idleText="Stop"
|
||||
@idleText="Stop Job"
|
||||
@cancelText="Cancel"
|
||||
@confirmText="Yes, Stop"
|
||||
@confirmText="Yes, Stop Job"
|
||||
@confirmationMessage="Are you sure you want to stop this job?"
|
||||
@awaitingConfirmation={{this.stopJob.isRunning}}
|
||||
@onConfirm={{perform this.stopJob}} />
|
||||
@@ -28,9 +28,9 @@
|
||||
<TwoStepButton
|
||||
data-test-start
|
||||
@alignRight={{true}}
|
||||
@idleText="Start"
|
||||
@idleText="Start Job"
|
||||
@cancelText="Cancel"
|
||||
@confirmText="Yes, Start"
|
||||
@confirmText="Yes, Start Job"
|
||||
@confirmationMessage="Are you sure you want to start this job?"
|
||||
@awaitingConfirmation={{this.startJob.isRunning}}
|
||||
@onConfirm={{perform this.startJob}} />
|
||||
|
||||
@@ -17,9 +17,9 @@
|
||||
idleButton="is-warning is-outlined"
|
||||
confirmButton="is-warning"}}
|
||||
@alignRight={{true}}
|
||||
@idleText="Revert"
|
||||
@idleText="Revert Version"
|
||||
@cancelText="Cancel"
|
||||
@confirmText="Yes, Revert"
|
||||
@confirmText="Yes, Revert Version"
|
||||
@confirmationMessage="Are you sure you want to revert to this version?"
|
||||
@inlineText={{true}}
|
||||
@fadingBackground={{true}}
|
||||
|
||||
Reference in New Issue
Block a user