diff --git a/client-app/src/admin/tests/grids/GridTestPanel.ts b/client-app/src/admin/tests/grids/GridTestPanel.ts index 383b1168f..5087a6305 100644 --- a/client-app/src/admin/tests/grids/GridTestPanel.ts +++ b/client-app/src/admin/tests/grids/GridTestPanel.ts @@ -71,7 +71,7 @@ const tbar = hoistCmp.factory(({model}) => toolbarSep(), refreshButton({ text: 'Load Grid', - model + target: model }), button({ text: 'Clear Grid', diff --git a/client-app/src/desktop/common/grid/SampleTreeGrid.ts b/client-app/src/desktop/common/grid/SampleTreeGrid.ts index 1351c0e89..04f4b7ea8 100644 --- a/client-app/src/desktop/common/grid/SampleTreeGrid.ts +++ b/client-app/src/desktop/common/grid/SampleTreeGrid.ts @@ -19,7 +19,7 @@ export const [SampleTreeGrid, sampleTreeGrid] = hoistCmp.withFactory({ item: hframe(grid(), gridOptionsPanel({model: gridModel})), ref: model.panelRef, tbar: [ - refreshButton({model}), + refreshButton({target: model}), toolbarSep(), groupingChooser(), filler(), diff --git a/client-app/src/desktop/tabs/grids/DataViewPanel.tsx b/client-app/src/desktop/tabs/grids/DataViewPanel.tsx index 730f61b12..f7a0558af 100644 --- a/client-app/src/desktop/tabs/grids/DataViewPanel.tsx +++ b/client-app/src/desktop/tabs/grids/DataViewPanel.tsx @@ -31,7 +31,7 @@ export const dataViewPanel = hoistCmp.factory({ bbar: [ refreshButton({ text: 'Load new (random) records', - model + target: model }), filler(), storeFilterField({store: model.dataViewModel.store}) diff --git a/client-app/src/examples/portfolio/grid/PositionsGrid.ts b/client-app/src/examples/portfolio/grid/PositionsGrid.ts index 0b508c4ab..45a99a336 100644 --- a/client-app/src/examples/portfolio/grid/PositionsGrid.ts +++ b/client-app/src/examples/portfolio/grid/PositionsGrid.ts @@ -29,7 +29,7 @@ export const positionsGrid = hoistCmp.factory({ gridCountLabel({unit: 'position'}), filler(), relativeTimestamp({bind: 'loadTimestamp'}), - refreshButton({model: XH.refreshContextModel, intent: 'success'}) + refreshButton({target: XH.refreshContextModel, intent: 'success'}) ] }); }