|
|
|
@ -4,7 +4,6 @@ import { useMemo, useState } from 'react';
|
|
|
|
|
|
|
|
|
|
import { EdgeStackStatus, StatusType } from '@/react/edge/edge-stacks/types';
|
|
|
|
|
import { useEnvironmentList } from '@/react/portainer/environments/queries';
|
|
|
|
|
import { isBE } from '@/react/portainer/feature-flags/feature-flags.service';
|
|
|
|
|
import { useParamState } from '@/react/hooks/useParamState';
|
|
|
|
|
import { EnvironmentId } from '@/react/portainer/environments/types';
|
|
|
|
|
|
|
|
|
@ -92,13 +91,12 @@ export function EnvironmentsDatatable() {
|
|
|
|
|
emptyContentLabel="No environment available."
|
|
|
|
|
disableSelect
|
|
|
|
|
description={
|
|
|
|
|
isBE && (
|
|
|
|
|
<div className="w-1/4">
|
|
|
|
|
<PortainerSelect<StatusType | undefined>
|
|
|
|
|
isClearable
|
|
|
|
|
bindToBody
|
|
|
|
|
value={statusFilter}
|
|
|
|
|
onChange={(e) => setStatusFilter(e || undefined)}
|
|
|
|
|
onChange={(e) => setStatusFilter(e ?? undefined)}
|
|
|
|
|
options={[
|
|
|
|
|
{ value: StatusType.Pending, label: 'Pending' },
|
|
|
|
|
{ value: StatusType.Acknowledged, label: 'Acknowledged' },
|
|
|
|
@ -108,7 +106,6 @@ export function EnvironmentsDatatable() {
|
|
|
|
|
]}
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
/>
|
|
|
|
|
);
|
|
|
|
|