@@ -16,12 +16,14 @@ function EditServerModalController(
16
16
findLinkedServerVariables ,
17
17
helpCards ,
18
18
instance ,
19
+ isTabNameValid ,
19
20
keypather ,
20
21
loading ,
21
22
loadingPromises ,
22
23
ModalService ,
23
24
OpenItems ,
24
25
tab ,
26
+ TAB_VISIBILITY ,
25
27
updateDockerfileFromState ,
26
28
close
27
29
) {
@@ -38,7 +40,6 @@ function EditServerModalController(
38
40
'getUpdatePromise' : parentController . getUpdatePromise . bind ( SMC ) ,
39
41
'insertHostName' : parentController . insertHostName . bind ( SMC ) ,
40
42
'isDirty' : parentController . isDirty . bind ( SMC ) ,
41
- '_isTabVisible' : parentController . isTabVisible . bind ( SMC ) ,
42
43
'openDockerfile' : parentController . openDockerfile . bind ( SMC ) ,
43
44
'populateStateFromData' : parentController . populateStateFromData . bind ( SMC ) ,
44
45
'rebuildAndOrRedeploy' : parentController . rebuildAndOrRedeploy . bind ( SMC ) ,
@@ -50,8 +51,7 @@ function EditServerModalController(
50
51
'switchBetweenAdvancedAndMirroring' : parentController . switchBetweenAdvancedAndMirroring . bind ( SMC ) ,
51
52
'switchToMirrorMode' : parentController . switchToMirrorMode . bind ( SMC ) ,
52
53
'switchToAdvancedMode' : parentController . switchToAdvancedMode . bind ( SMC ) ,
53
- 'updateInstanceAndReset' : parentController . updateInstanceAndReset . bind ( SMC ) ,
54
- 'TAB_VISIBILITY' : parentController . TAB_VISIBILITY
54
+ 'updateInstanceAndReset' : parentController . updateInstanceAndReset . bind ( SMC )
55
55
} ) ;
56
56
57
57
SMC . instance = instance ;
@@ -160,14 +160,14 @@ function EditServerModalController(
160
160
*/
161
161
SMC . isTabVisible = function ( tabName ) {
162
162
// First, check if tab exists and tab FF is turned on (if applicable)
163
- if ( ! SMC . _isTabVisible ( tabName ) ) {
163
+ if ( ! isTabNameValid ( tabName ) ) {
164
164
return false ;
165
165
}
166
166
var currentStatuses = [ ] ;
167
167
var currentContextVersion = keypather . get ( SMC , 'instance.contextVersion' ) ;
168
168
169
169
if ( ! currentContextVersion . getMainAppCodeVersion ( ) ) {
170
- return ! ! SMC . TAB_VISIBILITY [ tabName ] . nonRepo ;
170
+ return ! ! TAB_VISIBILITY [ tabName ] . nonRepo ;
171
171
}
172
172
if (
173
173
SMC . state . advanced ||
@@ -176,9 +176,9 @@ function EditServerModalController(
176
176
keypather . get ( currentContextVersion , 'attrs.advanced' )
177
177
)
178
178
) {
179
- return ! ! SMC . TAB_VISIBILITY [ tabName ] . advanced ;
179
+ return ! ! TAB_VISIBILITY [ tabName ] . advanced ;
180
180
}
181
- return ! ! SMC . TAB_VISIBILITY [ tabName ] . basic ;
181
+ return ! ! TAB_VISIBILITY [ tabName ] . basic ;
182
182
} ;
183
183
184
184
SMC . needsToBeDirtySaved = function ( ) {
0 commit comments