Skip to content

Commit

Permalink
modifyIndex gets its own column and pagination compacted with icons
Browse files Browse the repository at this point in the history
  • Loading branch information
philrenaud committed Apr 10, 2024
1 parent 5ff7259 commit 1fdeb35
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 6 deletions.
1 change: 1 addition & 0 deletions ui/app/controllers/jobs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ export default class JobsIndexController extends Controller {
'name',
this.system.shouldShowNamespaces ? 'namespace' : null,
'status',
'modify index',
'type',
this.system.shouldShowNodepools ? 'node pool' : null, // TODO: implement on system service
'priority',
Expand Down
27 changes: 21 additions & 6 deletions ui/app/templates/jobs/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@
@model={{B.data.idWithNamespace}}
class="is-primary"
>
{{B.data.name}} ({{B.data.modifyIndex}})
{{B.data.name}}
{{!-- TODO: going to lose .meta with statuses endpoint! --}}
{{#if B.data.meta.structured.pack}}
<span data-test-pack-tag class="tag is-pack">
Expand All @@ -320,6 +320,9 @@
<Hds::Badge @text="{{capitalize B.data.aggregateAllocStatus.label}}" @color={{B.data.aggregateAllocStatus.state}} @size="large" />
{{/unless}}
</B.Td>
<B.Td data-test-job-modify-index>
{{B.data.modifyIndex}}
</B.Td>
<B.Td data-test-job-type>
{{B.data.type}}
</B.Td>
Expand Down Expand Up @@ -367,7 +370,10 @@
>
<Hds::Button
@text="First"
@color="secondary"
@color="tertiary"
@size="small"
@icon="chevrons-left"
@iconPosition="leading"
disabled={{not this.cursorAt}}
{{on "click" (action this.handlePageChange "first")}}
/>
Expand All @@ -378,8 +384,11 @@
action=(action this.handlePageChange "prev")}}
>
<Hds::Button
@text="Prev"
@color="secondary"
@text="Previous"
@color="tertiary"
@size="small"
@icon="chevron-left"
@iconPosition="leading"
disabled={{not this.cursorAt}}
{{on "click" (action this.handlePageChange "prev")}}
/>
Expand All @@ -391,7 +400,10 @@
>
<Hds::Button
@text="Next"
@color="secondary"
@color="tertiary"
@size="small"
@icon="chevron-right"
@iconPosition="trailing"
disabled={{not this.nextToken}}
{{on "click" (action this.handlePageChange "next")}}
/>
Expand All @@ -403,7 +415,10 @@
>
<Hds::Button
@text="Last"
@color="secondary"
@color="tertiary"
@icon="chevrons-right"
@iconPosition="trailing"
@size="small"
disabled={{not this.nextToken}}
{{on "click" (action this.handlePageChange "last")}}
/>
Expand Down

0 comments on commit 1fdeb35

Please sign in to comment.