Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions x-pack/plugins/beats_management/common/constants/security.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@

export const REQUIRED_ROLES = ['beats_admin'];
export const REQUIRED_LICENSES = ['standard', 'gold', 'trial', 'platinum'];
export const LICENSES = ['oss', 'standard', 'gold', 'trial', 'platinum'];
export type LicenseType = 'oss' | 'trial' | 'standard' | 'basic' | 'gold' | 'platinum';
export const LICENSES = ['oss', 'basic', 'standard', 'gold', 'trial', 'platinum'];
export type LicenseType = 'oss' | 'basic' | 'trial' | 'standard' | 'basic' | 'gold' | 'platinum';
8 changes: 6 additions & 2 deletions x-pack/plugins/beats_management/public/router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,12 @@ export class AppRouter extends Component<RouterProps, RouterState> {

public async componentWillMount() {
if (this.state.loadingStatus === 'loading') {
await this.props.beatsContainer.reload();
await this.props.tagsContainer.reload();
try {
await this.props.beatsContainer.reload();
await this.props.tagsContainer.reload();
} catch (e) {
// TODO in a furture version we will better manage this "error" in a returned arg
}

const countOfEverything =
this.props.beatsContainer.state.list.length + this.props.tagsContainer.state.list.length;
Expand Down