Skip to content

Commit

Permalink
Fix Clean Up Tools (#1728)
Browse files Browse the repository at this point in the history
Wording Clean up Task execution(s)
Fix Task Executions Count URL
Resolves #1727
  • Loading branch information
oodamien authored May 26, 2021
1 parent 328e796 commit 46a218d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ui/src/app/manage/tools/cleanup/cleanup.component.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<clr-modal [(clrModalOpen)]="isOpen" [clrModalClosable]="!isRunning">
<h3 class="modal-title">Confirm Clean Up Execution(s)</h3>
<h3 class="modal-title">Confirm Clean Up Task Execution(s)</h3>
<div class="modal-body" *ngIf="!isRunning && !loading">
<p>
This action will remove <strong>{{status === 'all' ? count.all : count.completed}} execution(s)</strong>.
Expand Down
2 changes: 1 addition & 1 deletion ui/src/app/manage/tools/tools.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ <h1>Tools</h1>
</ng-template>
</app-view-card>

<app-view-card titleModal="Clean up Executions" keyContext="import-export" name="import-export" id="cleanup">
<app-view-card titleModal="Clean up Task Executions" keyContext="import-export" name="import-export" id="cleanup">
<ng-template>
<div>
<clr-icon shape="angle" style="transform: rotate(90deg)"></clr-icon>
Expand Down
2 changes: 1 addition & 1 deletion ui/src/app/shared/api/task.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export class TaskService {
getTaskExecutionsCount(task?: Task): Observable<{ completed: number, all: number}> {
const headers = HttpUtils.getDefaultHttpHeaders();
let url = '/tasks/info/executions';
let url2 = `${url}?completed=true'`;
let url2 = `${url}?completed=true`;
if (task) {
url = `/tasks/info/executions?name=${task.name}`;
url2 = `${url}&completed=true`;
Expand Down

0 comments on commit 46a218d

Please sign in to comment.