mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2026-04-26 08:21:33 +01:00
set default priority level to Low
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { PriorityLevel } from "@azure/cosmos";
|
||||
import * as Constants from "../Common/Constants";
|
||||
import { LocalStorageUtility, StorageKey } from "./StorageUtility";
|
||||
|
||||
@@ -6,7 +7,7 @@ export const createDefaultSettings = () => {
|
||||
LocalStorageUtility.setEntryNumber(StorageKey.CustomItemPerPage, Constants.Queries.itemsPerPage);
|
||||
LocalStorageUtility.setEntryString(StorageKey.IsCrossPartitionQueryEnabled, "true");
|
||||
LocalStorageUtility.setEntryNumber(StorageKey.MaxDegreeOfParellism, Constants.Queries.DefaultMaxDegreeOfParallelism);
|
||||
LocalStorageUtility.setEntryString(StorageKey.PriorityLevel, Constants.PriorityLevel.Default);
|
||||
LocalStorageUtility.setEntryString(StorageKey.PriorityLevel, PriorityLevel.Low);
|
||||
};
|
||||
|
||||
export const hasSettingsDefined = (): boolean => {
|
||||
@@ -19,6 +20,6 @@ export const hasSettingsDefined = (): boolean => {
|
||||
|
||||
export const ensurePriorityLevel = () => {
|
||||
if (!LocalStorageUtility.hasItem(StorageKey.PriorityLevel)) {
|
||||
LocalStorageUtility.setEntryString(StorageKey.PriorityLevel, Constants.PriorityLevel.Default);
|
||||
LocalStorageUtility.setEntryString(StorageKey.PriorityLevel, PriorityLevel.Low);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user