Skip to content

Commit

Permalink
Add time-lion-sheet back to types.
Browse files Browse the repository at this point in the history
  • Loading branch information
skh committed Oct 31, 2019
1 parent 2df30c5 commit 6554a24
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions x-pack/legacy/plugins/integrations_manager/common/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export enum AssetType {
search = 'search',
ingestPipeline = 'ingest-pipeline',
indexPattern = 'index-pattern',
timeLionSheet = 'time-lion-sheet',
}

// Registry's response types
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export const SAVED_OBJECT_TYPES = new Set<AssetType>([
AssetType.dashboard,
AssetType.indexPattern,
AssetType.search,
AssetType.timeLionSheet,
AssetType.visualization,
]);

Expand All @@ -39,6 +40,6 @@ export function createInstallableFrom<T>(from: T, savedObject?: Installation): I
};
}

export function assetUsesObjects(asset: AssetType) {
return SAVED_OBJECT_TYPES.has(asset);
export function assetUsesObjects(assetType: AssetType) {
return SAVED_OBJECT_TYPES.has(assetType);
}

0 comments on commit 6554a24

Please sign in to comment.