Add UX for Mongo indexing experiment (#368)

Co-authored-by: Tim Sander <tisande@microsoft.com>
This commit is contained in:
Steve Faulkner
2021-01-05 16:04:55 -06:00
committed by GitHub
parent e801364800
commit 4a8f408112
4 changed files with 14 additions and 2 deletions

View File

@@ -92,7 +92,7 @@ export default class AddCollectionPane extends ContextualPaneBase {
public freeTierExceedThroughputTooltip: ko.Computed<string>;
public canConfigureThroughput: ko.PureComputed<boolean>;
public showUpsellMessage: ko.PureComputed<boolean>;
public shouldCreateMongoWildcardIndex: ko.Observable<boolean>;
public shouldCreateMongoWildcardIndex: ko.Computed<boolean>;
private _isSynapseLinkEnabled: ko.Computed<boolean>;
@@ -654,7 +654,9 @@ export default class AddCollectionPane extends ContextualPaneBase {
});
});
this.shouldCreateMongoWildcardIndex = ko.observable(false);
this.shouldCreateMongoWildcardIndex = ko.computed(function() {
return this.container.isMongoIndexingEnabled();
}, this);
}
public getSharedThroughputDefault(): boolean {