@@ -406,7 +406,6 @@ function ProjectNameSetting(props: {
406
406
handleSubmit : ( ) => void ;
407
407
} ) {
408
408
const { form, handleSubmit } = props ;
409
- const isNameDirty = form . getFieldState ( "name" ) . isDirty ;
410
409
411
410
return (
412
411
< SettingsCard
@@ -419,8 +418,8 @@ function ProjectNameSetting(props: {
419
418
errorText = { form . getFieldState ( "name" ) . error ?. message }
420
419
saveButton = { {
421
420
onClick : handleSubmit ,
422
- disabled : ! isNameDirty ,
423
- isPending : props . isUpdatingProject && isNameDirty ,
421
+ disabled : false ,
422
+ isPending : props . isUpdatingProject ,
424
423
} }
425
424
bottomText = "Please use 64 characters at maximum"
426
425
>
@@ -501,7 +500,6 @@ function AllowedDomainsSetting(props: {
501
500
handleSubmit : ( ) => void ;
502
501
} ) {
503
502
const { form, handleSubmit } = props ;
504
- const isDomainsDirty = form . getFieldState ( "domains" ) . isDirty ;
505
503
506
504
const helperText = (
507
505
< ul className = "flex list-disc flex-col gap-1.5 py-1 pl-3 text-muted-foreground text-sm [&>li]:pl-1" >
@@ -544,8 +542,8 @@ function AllowedDomainsSetting(props: {
544
542
errorText = { form . getFieldState ( "domains" , form . formState ) . error ?. message }
545
543
saveButton = { {
546
544
onClick : handleSubmit ,
547
- disabled : ! isDomainsDirty ,
548
- isPending : props . isUpdatingProject && isDomainsDirty ,
545
+ disabled : false ,
546
+ isPending : props . isUpdatingProject ,
549
547
} }
550
548
bottomText = "This is only applicable for web applications"
551
549
>
@@ -606,13 +604,12 @@ function AllowedBundleIDsSetting(props: {
606
604
handleSubmit : ( ) => void ;
607
605
} ) {
608
606
const { form, handleSubmit } = props ;
609
- const isBundleIdsDirty = form . getFieldState ( "bundleIds" ) . isDirty ;
610
607
return (
611
608
< SettingsCard
612
609
saveButton = { {
613
610
onClick : handleSubmit ,
614
- disabled : ! isBundleIdsDirty ,
615
- isPending : props . isUpdatingProject && isBundleIdsDirty ,
611
+ disabled : false ,
612
+ isPending : props . isUpdatingProject ,
616
613
} }
617
614
noPermissionText = { undefined }
618
615
header = { {
@@ -715,7 +712,7 @@ function EnabledServicesSetting(props: {
715
712
errorText = { undefined }
716
713
saveButton = { {
717
714
onClick : handleSubmit ,
718
- disabled : ! form . formState . isDirty ,
715
+ disabled : false ,
719
716
isPending : props . isUpdatingProject ,
720
717
} }
721
718
bottomText = ""
@@ -1219,8 +1216,6 @@ function TransferProject(props: {
1219
1216
selectedTeamId === props . currentTeamId ||
1220
1217
! props . isOwnerAccount ;
1221
1218
1222
- console . log ( { selectedTeam : selectedTeamWithRole , isDisabled } ) ;
1223
-
1224
1219
const handleTransfer = ( ) => {
1225
1220
if ( ! hasOwnerRole ) {
1226
1221
return ;
0 commit comments