Fix Fabric Native ReadOnly mode (#2123)

* Add FabricNativeReadOnly mode

* Hide Settings for Fabric native readonly

* Fix strict compil
This commit is contained in:
Laurent Nguyen
2025-04-30 17:37:54 +02:00
committed by GitHub
parent e90e1fc581
commit fe73d0a1c6
4 changed files with 21 additions and 6 deletions

View File

@@ -136,3 +136,4 @@ export const isFabricMirroredAAD = (): boolean =>
export const isFabricMirrored = (): boolean => isFabricMirroredKey() || isFabricMirroredAAD();
export const isFabricNative = (): boolean =>
isFabric() && userContext.fabricContext?.artifactType === CosmosDbArtifactType.NATIVE;
export const isFabricNativeReadOnly = (): boolean => isFabricNative() && !!userContext.fabricContext?.isReadOnly;