Skip to content

Commit

Permalink
RefreshButton takes target instead of model (#748)
Browse files Browse the repository at this point in the history
  • Loading branch information
lbwexler authored Dec 27, 2024
1 parent 17e9a13 commit 66b9411
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion client-app/src/admin/tests/grids/GridTestPanel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const tbar = hoistCmp.factory<GridTestModel>(({model}) =>
toolbarSep(),
refreshButton({
text: 'Load Grid',
model
target: model
}),
button({
text: 'Clear Grid',
Expand Down
2 changes: 1 addition & 1 deletion client-app/src/desktop/common/grid/SampleTreeGrid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
2 changes: 1 addition & 1 deletion client-app/src/desktop/tabs/grids/DataViewPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down
2 changes: 1 addition & 1 deletion client-app/src/examples/portfolio/grid/PositionsGrid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'})
]
});
}
Expand Down

0 comments on commit 66b9411

Please sign in to comment.