File tree Expand file tree Collapse file tree 5 files changed +11
-0
lines changed
packages/compass-global-writes/src/components Expand file tree Collapse file tree 5 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ import {
1414 Radio ,
1515 RadioGroup ,
1616 spacing ,
17+ SpinLoader ,
1718 Subtitle ,
1819 TextInput ,
1920} from '@mongodb-js/compass-components' ;
@@ -305,6 +306,7 @@ export function CreateShardKeyForm({
305306 }
306307 variant = "primary"
307308 isLoading = { isSubmittingForSharding }
309+ loadingIndicator = { < SpinLoader /> }
308310 >
309311 Shard Collection
310312 </ Button >
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import {
1111 Label ,
1212 Button ,
1313 ButtonVariant ,
14+ SpinLoader ,
1415} from '@mongodb-js/compass-components' ;
1516import { connect } from 'react-redux' ;
1617import {
@@ -167,6 +168,7 @@ export function ShardKeyCorrect({
167168 onClick = { onUnmanageNamespace }
168169 variant = { ButtonVariant . Primary }
169170 isLoading = { isUnmanagingNamespace }
171+ loadingIndicator = { < SpinLoader /> }
170172 >
171173 Unmanage collection
172174 </ Button >
Original file line number Diff line number Diff line change 55 spacing ,
66 css ,
77 ButtonVariant ,
8+ SpinLoader ,
89} from '@mongodb-js/compass-components' ;
910import React from 'react' ;
1011import ShardKeyMarkup from '../shard-key-markup' ;
@@ -69,6 +70,7 @@ export function ShardKeyMismatch({
6970 onClick = { onUnmanageNamespace }
7071 variant = { ButtonVariant . Default }
7172 isLoading = { isUnmanagingNamespace }
73+ loadingIndicator = { < SpinLoader /> }
7274 className = { unmanageBtnStyles }
7375 >
7476 Unmanage collection
Original file line number Diff line number Diff line change 55 Button ,
66 css ,
77 spacing ,
8+ SpinLoader ,
89} from '@mongodb-js/compass-components' ;
910import { connect } from 'react-redux' ;
1011import {
@@ -23,6 +24,7 @@ const btnStyles = css({
2324const errorStyles = css ( {
2425 marginTop : spacing [ 200 ] ,
2526 whiteSpace : 'pre-wrap' ,
27+ textAlign : 'left' ,
2628} ) ;
2729
2830interface ShardingErrorProps {
@@ -49,6 +51,7 @@ export function ShardingError({
4951 data-testid = "cancel-sharding-btn"
5052 disabled = { isCancellingSharding || isSubmittingForSharding }
5153 isLoading = { isCancellingSharding }
54+ loadingIndicator = { < SpinLoader /> }
5255 onClick = { onCancelSharding }
5356 >
5457 Cancel Request
Original file line number Diff line number Diff line change 77 css ,
88 Link ,
99 spacing ,
10+ SpinLoader ,
1011} from '@mongodb-js/compass-components' ;
1112import { connect } from 'react-redux' ;
1213import {
@@ -42,6 +43,7 @@ export function ShardingState({
4243 data-testid = "cancel-sharding-btn"
4344 onClick = { onCancelSharding }
4445 isLoading = { isCancellingSharding }
46+ loadingIndicator = { < SpinLoader /> }
4547 >
4648 Cancel Request
4749 </ Button >
You can’t perform that action at this time.
0 commit comments