File tree Expand file tree Collapse file tree 3 files changed +35
-5
lines changed
view/magento/setup/readiness-check Expand file tree Collapse file tree 3 files changed +35
-5
lines changed Original file line number Diff line number Diff line change @@ -117,7 +117,12 @@ angular.module('component-grid', ['ngStorage'])
117
117
if ( $localStorage . titles [ 'update' ] . indexOf ( component . moduleName ) < 0 ) {
118
118
$localStorage . titles [ 'update' ] = 'Update ' + component . moduleName ;
119
119
}
120
- $localStorage . moduleName = component . moduleName ;
120
+ if ( component . moduleName ) {
121
+ $localStorage . moduleName = component . moduleName ;
122
+ } else {
123
+ $localStorage . moduleName = component . name ;
124
+ }
125
+
121
126
$scope . nextState ( ) ;
122
127
} ;
123
128
@@ -131,7 +136,11 @@ angular.module('component-grid', ['ngStorage'])
131
136
$localStorage . titles [ 'uninstall' ] = 'Uninstall ' + component . moduleName ;
132
137
}
133
138
$localStorage . componentType = component . type ;
134
- $localStorage . moduleName = component . moduleName ;
139
+ if ( component . moduleName ) {
140
+ $localStorage . moduleName = component . moduleName ;
141
+ } else {
142
+ $localStorage . moduleName = component . name ;
143
+ }
135
144
$state . go ( 'root.readiness-check-uninstall' ) ;
136
145
} ;
137
146
Original file line number Diff line number Diff line change @@ -334,4 +334,27 @@ angular.module('readiness-check', [])
334
334
$scope . progress ( ) ;
335
335
}
336
336
} ) ;
337
+
338
+ $scope . wordingOfReadinessCheckAction = function ( ) {
339
+ var $actionString = 'We\'re making sure your server environment is ready for ' ;
340
+ if ( $localStorage . moduleName ) {
341
+ $actionString += $localStorage . moduleName ;
342
+ } else {
343
+ if ( $state . current . type === 'install' || $state . current . type === 'upgrade' ) {
344
+ $actionString += 'Magento' ;
345
+ if ( $state . current . type === 'upgrade' && $localStorage . packages . length > 1 ) {
346
+ $actionString += ' and Selected Components' ;
347
+ }
348
+ } else {
349
+ $actionString += $localStorage . titles [ $state . current . type ] ;
350
+ }
351
+ }
352
+ $actionString += " to be " + $state . current . type ;
353
+ if ( $scope . endsWith ( $state . current . type , 'e' ) ) {
354
+ $actionString += 'd' ;
355
+ } else {
356
+ $actionString += 'ed' ;
357
+ }
358
+ return $actionString ;
359
+ }
337
360
} ] ) ;
Original file line number Diff line number Diff line change 30
30
<span></span><span></span><span></span><span></span>
31
31
<span></span><span></span><span></span><span></span>
32
32
</span>
33
- <span class="message-text">We're making sure your server environment is ready for
34
- {{moduleName ? moduleName : ($state.current.type === 'install'? 'Magento' : titles[$state.current.type])}}
35
- to be {{$state.current.type}}{{endsWith($state.current.type, 'e') ? 'd' : 'ed'}}.</span>
33
+ <span class="message-text">{{wordingOfReadinessCheckAction()}}.</span>
36
34
</div>
37
35
38
36
</div>
You can’t perform that action at this time.
0 commit comments