File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed
ui/src/features/git-platforms-operations Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -36,20 +36,24 @@ export const AddOrUpdateGitPlatform = (addOrUpdateGitPlatformProps: AddOrUpdateG
36
36
interface SupportedGitPlatform {
37
37
name : string ;
38
38
url : string ;
39
+ isEnabled : boolean ;
39
40
}
40
41
41
42
const supportedGitPlatforms = [
42
43
{
43
44
name : "github" ,
44
- url : "https://github.com"
45
+ url : "https://github.com" ,
46
+ isEnabled : true
45
47
} ,
46
48
{
47
- name : "gitlab" ,
48
- url : "https://gitlab.com"
49
+ name : "gitlab [upcoming]" ,
50
+ url : "https://gitlab.com" ,
51
+ isEnabled : false
49
52
} ,
50
53
{
51
- name : "bitbucket" ,
52
- url : "https://bitbucket.org"
54
+ name : "bitbucket[upcoming]" ,
55
+ url : "https://bitbucket.org" ,
56
+ isEnabled : false
53
57
}
54
58
] ;
55
59
@@ -130,7 +134,8 @@ export const AddOrUpdateGitPlatform = (addOrUpdateGitPlatformProps: AddOrUpdateG
130
134
{
131
135
supportedGitPlatforms . map ( ( supportedGitPlatform : SupportedGitPlatform ) =>
132
136
(
133
- < MenuItem key = { supportedGitPlatform . name } value = { supportedGitPlatform . name } >
137
+ < MenuItem key = { supportedGitPlatform . name } value = { supportedGitPlatform . name }
138
+ disabled = { ! supportedGitPlatform . isEnabled } >
134
139
{ supportedGitPlatform . name }
135
140
</ MenuItem >
136
141
)
You can’t perform that action at this time.
0 commit comments