1
0
Fork 0
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:
Chaim Lev-Ari 2024-06-02 12:29:20 +03:00 committed by GitHub
parent 02fbdfec36
commit b7cde35c3d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
56 changed files with 45 additions and 93 deletions

View file

@ -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,

View file

@ -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
/>

View file

@ -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} />
)}

View file

@ -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} />

View file

@ -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) => (

View file

@ -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">

View file

@ -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