@spotinst/spinnaker-deck
Version:
Spinnaker-Deck service, forked with support to Spotinst
17 lines (13 loc) • 707 B
text/typescript
import { module } from 'angular';
import { react2angular } from 'react2angular';
import { withErrorBoundary } from 'core/presentation/SpinErrorBoundary';
import { Search } from './Search';
import { SearchFilterTypeRegistry } from './SearchFilterTypeRegistry';
export const SEARCH_COMPONENT = 'spinnaker.core.search.component';
module(SEARCH_COMPONENT, [])
.component('tagSearch', react2angular(withErrorBoundary(Search, 'tagSearch'), ['params', 'onChange']))
.run(() => {
SearchFilterTypeRegistry.register({ key: 'account', name: 'Account' });
SearchFilterTypeRegistry.register({ key: 'region', name: 'Region' });
SearchFilterTypeRegistry.register({ key: 'stack', name: 'Stack' });
});