We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 64a907e commit a7028a7Copy full SHA for a7028a7
frontend/src/components/bulk-action-bar.tsx
@@ -23,14 +23,14 @@ export const BulkActionBar = Shade<BulkActionBarProps>({
23
const hasRunning = selection.some((s) => s.runStatus === 'running')
24
const hasStopped = selection.some((s) => s.runStatus !== 'running')
25
26
- const bulkAction = async (action: string) => {
+ const bulkAction = async (action: 'start' | 'stop' | 'restart' | 'setup' | 'update') => {
27
setIsBulkLoading(true)
28
const failures: string[] = []
29
for (const svc of selection) {
30
try {
31
await api.call({
32
method: 'POST',
33
- action: `/services/:id/${action}` as '/services/:id/start',
+ action: `/services/:id/${action}`,
34
url: { id: svc.id },
35
})
36
} catch {
0 commit comments