mirror of
https://github.com/portainer/portainer.git
synced 2025-08-02 04:15:28 +02:00
refactor(docker/services): migrate service tasks to react [EE-4676] (#10328)
This commit is contained in:
parent
70455320be
commit
1fa63f6ab7
24 changed files with 175 additions and 259 deletions
|
@ -0,0 +1,24 @@
|
|||
import { useMemo } from 'react';
|
||||
import _ from 'lodash';
|
||||
|
||||
import { actions } from './actions';
|
||||
import { node } from './node';
|
||||
import { slot } from './slot';
|
||||
import { status } from './status';
|
||||
import { task } from './task';
|
||||
import { updated } from './updated';
|
||||
|
||||
export function useColumns(isSlotColumnsVisible = true) {
|
||||
return useMemo(
|
||||
() =>
|
||||
_.compact([
|
||||
status,
|
||||
task,
|
||||
actions,
|
||||
isSlotColumnsVisible && slot,
|
||||
node,
|
||||
updated,
|
||||
]),
|
||||
[isSlotColumnsVisible]
|
||||
);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue