Skip to content

Commit a9d1744

Browse files
committed
tweaks
1 parent 3693839 commit a9d1744

File tree

2 files changed

+32
-17
lines changed

2 files changed

+32
-17
lines changed

src/pages/scientificServices/pipelines/views/JobHistory.tsx

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,27 @@ export const JobHistory = () => {
121121
setSort(sort);
122122
setPageNumber(1);
123123
})}
124-
noContentMessage={filters ? <div>No results match the selected filters</div> : 'Nothing to display'}
124+
noContentMessage={
125+
filters ? (
126+
<div>
127+
No results match the selected filters.{' '}
128+
<a
129+
style={{
130+
color: '#46A3E9',
131+
fontWeight: 700,
132+
textDecoration: 'underline',
133+
cursor: 'pointer',
134+
}}
135+
onClick={() => setFilters({})}
136+
>
137+
Clear filters
138+
</a>{' '}
139+
to see all jobs.
140+
</div>
141+
) : (
142+
'Nothing to display'
143+
)
144+
}
125145
tabIndex={-1}
126146
variant={undefined}
127147
styleHeader={() => ({ backgroundColor: '#eff0f1' })}

src/pages/scientificServices/pipelines/views/TableFilters.tsx

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
import { Select } from '@terra-ui-packages/components';
1+
import { ButtonPrimary, Select } from '@terra-ui-packages/components';
22
import React from 'react';
3-
import { DelayedSearchInput, TextInput } from 'src/components/input';
3+
import { DelayedSearchInput } from 'src/components/input';
44
import { PipelineRunStatus } from 'src/libs/ajax/teaspoons/teaspoons-models';
5-
import colors from 'src/libs/colors';
65

76
export interface FilterValues {
87
description?: string;
@@ -126,25 +125,21 @@ export const TableFilters: React.FC<TableFiltersProps> = ({ filters, onFilterCha
126125
/>
127126
</div>
128127

129-
{/* Clear Filters Button */}
130-
<div style={{ display: 'flex', flex: '0 0 auto' }}>
131-
<button
132-
type='button'
128+
<div
129+
style={{
130+
display: 'flex',
131+
flex: '0 0 auto',
132+
}}
133+
>
134+
<ButtonPrimary
133135
disabled={!hasActiveFilters}
134136
onClick={handleClearFilters}
135137
style={{
136-
color: hasActiveFilters ? '#46A3E9' : '#aaa',
137-
fontWeight: 600,
138-
textDecoration: 'underline',
139-
background: 'none',
140-
border: 'none',
141-
padding: '0.5rem',
142-
cursor: hasActiveFilters ? 'default' : 'not-allowed',
143-
fontSize: '14px',
138+
height: '2.33rem',
144139
}}
145140
>
146141
Clear
147-
</button>
142+
</ButtonPrimary>
148143
</div>
149144
</div>
150145
</div>

0 commit comments

Comments
 (0)