Skip to content

Commit 67cbb98

Browse files
author
Igor Melnikov
committed
MAGETWO-44975: Incorrect messgae on success page after extension installation
Setting titles in state
1 parent 0f300a8 commit 67cbb98

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

setup/pub/magento/setup/component-grid.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ angular.module('component-grid', ['ngStorage'])
122122
if ($localStorage.titles['update'].indexOf($localStorage.moduleName) < 0 ) {
123123
$localStorage.titles['update'] = 'Update ' + $localStorage.moduleName;
124124
}
125-
$rootScope.titles = $localStorage.titles;
125+
$state.titles = $localStorage.titles;
126126
$scope.nextState();
127127
};
128128

@@ -140,7 +140,7 @@ angular.module('component-grid', ['ngStorage'])
140140
if ($localStorage.titles['uninstall'].indexOf($localStorage.moduleName) < 0 ) {
141141
$localStorage.titles['uninstall'] = 'Uninstall ' + $localStorage.moduleName;
142142
}
143-
$rootScope.titles = $localStorage.titles;
143+
$state.titles = $localStorage.titles;
144144
$localStorage.componentType = component.type;
145145
$state.go('root.readiness-check-uninstall');
146146
};
@@ -161,7 +161,7 @@ angular.module('component-grid', ['ngStorage'])
161161
$localStorage.titles[type] = type.charAt(0).toUpperCase() + type.slice(1) + ' '
162162
+ $localStorage.moduleName;
163163
}
164-
$rootScope.titles = $localStorage.titles;
164+
$state.titles = $localStorage.titles;
165165
$localStorage.componentType = component.type;
166166
$state.go('root.readiness-check-'+type);
167167
}

0 commit comments

Comments
 (0)