File tree 1 file changed +9
-6
lines changed
src/Explorer/Controls/Settings/SettingsSubComponents
1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ import * as ViewModels from "../../../../Contracts/ViewModels";
14
14
15
15
import { handleError } from "Common/ErrorHandlingUtils" ;
16
16
import { cancelDataTransferJob , pollDataTransferJob } from "Common/dataAccess/dataTransfers" ;
17
+ import { Platform , configContext } from "ConfigContext" ;
17
18
import Explorer from "Explorer/Explorer" ;
18
19
import { ChangePartitionKeyPane } from "Explorer/Panes/ChangePartitionKeyPane/ChangePartitionKeyPane" ;
19
20
import {
@@ -177,12 +178,14 @@ export const PartitionKeyComponent: React.FC<PartitionKeyComponentProps> = ({ da
177
178
To change the partition key, a new destination container must be created or an existing destination container
178
179
selected. Data will then be copied to the destination container.
179
180
</ Text >
180
- < PrimaryButton
181
- styles = { { root : { width : "fit-content" } } }
182
- text = "Change"
183
- onClick = { startPartitionkeyChangeWorkflow }
184
- disabled = { isCurrentJobInProgress ( portalDataTransferJob ) }
185
- />
181
+ { configContext . platform !== Platform . Emulator && (
182
+ < PrimaryButton
183
+ styles = { { root : { width : "fit-content" } } }
184
+ text = "Change"
185
+ onClick = { startPartitionkeyChangeWorkflow }
186
+ disabled = { isCurrentJobInProgress ( portalDataTransferJob ) }
187
+ />
188
+ ) }
186
189
{ portalDataTransferJob && (
187
190
< Stack >
188
191
< Text styles = { textHeadingStyle } > { partitionKeyName } change job</ Text >
You can’t perform that action at this time.
0 commit comments