Remvoe Explorer.isServerlessEnabled (#883)

This commit is contained in:
Steve Faulkner
2021-06-10 16:16:43 -07:00
committed by GitHub
parent 6de77a4fba
commit 006230262c
11 changed files with 21 additions and 31 deletions

View File

@@ -86,7 +86,6 @@ export interface ExplorerParams {
export default class Explorer {
public isFixedCollectionWithSharedThroughputSupported: ko.Computed<boolean>;
public isServerlessEnabled: ko.Computed<boolean>;
public isAccountReady: ko.Observable<boolean>;
public canSaveQueries: ko.Computed<boolean>;
public queriesClient: QueriesClient;
@@ -230,13 +229,6 @@ export default class Explorer {
return isCapabilityEnabled("EnableMongo");
});
this.isServerlessEnabled = ko.computed(
() =>
userContext.databaseAccount?.properties?.capabilities?.find(
(item) => item.name === Constants.CapabilityNames.EnableServerless
) !== undefined
);
this.isHostedDataExplorerEnabled = ko.computed<boolean>(
() =>
configContext.platform === Platform.Portal &&