mirror of
https://github.com/portainer/portainer.git
synced 2025-07-23 15:29:42 +02:00
fix(ui/datatables): make empty table label consistent [EE-6499] (#11612)
This commit is contained in:
parent
02fbdfec36
commit
b7cde35c3d
56 changed files with 45 additions and 93 deletions
|
@ -25,7 +25,6 @@ export function AssociatedEdgeEnvironmentsSelector({
|
|||
<div className="w-1/2">
|
||||
<EdgeGroupAssociationTable
|
||||
title="Available environments"
|
||||
emptyContentLabel="No environment available"
|
||||
query={{
|
||||
types: EdgeTypes,
|
||||
excludeIds: value,
|
||||
|
@ -41,7 +40,6 @@ export function AssociatedEdgeEnvironmentsSelector({
|
|||
<div className="w-1/2">
|
||||
<EdgeGroupAssociationTable
|
||||
title="Associated environments"
|
||||
emptyContentLabel="No associated environment'"
|
||||
query={{
|
||||
types: EdgeTypes,
|
||||
endpointIds: value,
|
||||
|
|
|
@ -41,13 +41,11 @@ const columns = [
|
|||
export function EdgeGroupAssociationTable({
|
||||
title,
|
||||
query,
|
||||
emptyContentLabel,
|
||||
onClickRow,
|
||||
'data-cy': dataCy,
|
||||
}: {
|
||||
title: string;
|
||||
query: EnvironmentsQueryParams;
|
||||
emptyContentLabel: string;
|
||||
onClickRow: (env: Environment) => void;
|
||||
} & AutomationTestingProps) {
|
||||
const tableState = useTableStateWithoutStorage('Name');
|
||||
|
@ -97,7 +95,6 @@ export function EdgeGroupAssociationTable({
|
|||
onClick={() => onClickRow(row.original)}
|
||||
/>
|
||||
)}
|
||||
emptyContentLabel={emptyContentLabel}
|
||||
data-cy={dataCy}
|
||||
disableSelect
|
||||
/>
|
||||
|
|
|
@ -36,7 +36,6 @@ export function Datatable() {
|
|||
dataset={environments}
|
||||
title="Edge Devices Waiting Room"
|
||||
titleIcon={Box}
|
||||
emptyContentLabel="No Edge Devices found"
|
||||
renderTableActions={(selectedRows) => (
|
||||
<TableActions selectedRows={selectedRows} />
|
||||
)}
|
||||
|
|
|
@ -24,7 +24,6 @@ export function EdgeGroupsDatatable() {
|
|||
columns={columns}
|
||||
dataset={edgeGroupsQuery.data || []}
|
||||
settingsManager={tableState}
|
||||
emptyContentLabel="No Edge group available."
|
||||
isLoading={edgeGroupsQuery.isLoading}
|
||||
renderTableActions={(selectedItems) => (
|
||||
<TableActions selectedItems={selectedItems} />
|
||||
|
|
|
@ -23,7 +23,6 @@ export function EdgeJobsDatatable() {
|
|||
isLoading={jobsQuery.isLoading}
|
||||
dataset={jobsQuery.data || []}
|
||||
settingsManager={tableState}
|
||||
emptyContentLabel="No Edge jobs available."
|
||||
title="Edge Jobs"
|
||||
titleIcon={Clock}
|
||||
renderTableActions={(selectedItems) => (
|
||||
|
|
|
@ -111,7 +111,6 @@ export function EnvironmentsDatatable() {
|
|||
page={page}
|
||||
onPageChange={setPage}
|
||||
totalCount={environmentsQuery.totalCount}
|
||||
emptyContentLabel="No environment available."
|
||||
disableSelect
|
||||
description={
|
||||
<div className="w-1/4">
|
||||
|
|
|
@ -36,7 +36,6 @@ export function EdgeStacksDatatable() {
|
|||
dataset={edgeStacksQuery.data || []}
|
||||
initialTableState={getColumnVisibilityState(tableState.hiddenColumns)}
|
||||
settingsManager={tableState}
|
||||
emptyContentLabel="No stack available."
|
||||
isLoading={edgeStacksQuery.isLoading}
|
||||
renderTableSettings={(tableInstance) => (
|
||||
<TableSettingsMenus
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue