Skip to content

Commit

Permalink
Pass activation on to subviews in SearchResultListPanel (#449 #501)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgonggrijp committed Nov 10, 2021
1 parent 513e448 commit ddd6352
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion frontend/src/panel-search-results/search-result-list-panel.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import { extend, get } from 'lodash';

import { CompositeView, ViewOptions as BaseOpt } from '../core/view';
import {
CompositeView,
callActivate,
ViewOptions as BaseOpt,
} from '../core/view';
import FlatItem from '../common-adapters/flat-item-model';
import explorerChannel from '../explorer/explorer-radio';
import { announceRoute } from '../explorer/utilities';
Expand Down Expand Up @@ -75,6 +79,10 @@ export default class SearchResultListPanel extends CompositeView {
removeSpinner(): void {
this.dispose('spinner');
}

activate(): this {
return this.forEachSubview(callActivate);
}
}

extend(SearchResultListPanel.prototype, {
Expand Down

0 comments on commit ddd6352

Please sign in to comment.