Skip to content

Commit

Permalink
Fix issue when user selected more than one pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
QxiaoQ committed Sep 18, 2019
1 parent 726551b commit ff6836c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/lib/Buttons.ts
Expand Up @@ -353,7 +353,7 @@ export default class Buttons {
callback: (selectedIds: string[], success: boolean) => void): void {
this._dialogActionHandler(
selectedIds,
'Do you want to delete this Pipeline? This action cannot be undone.',
`Do you want to delete ${selectedIds.length === 1 ? 'this Pipeline' : 'these Pipelines'}? This action cannot be undone.`,
useCurrentResource,
id => Apis.pipelineServiceApi.deletePipeline(id),
callback,
Expand Down

0 comments on commit ff6836c

Please sign in to comment.