Fix dismiss of credential permissions routing

This commit is contained in:
gconsidine 2017-07-25 16:30:56 -04:00
parent e904d47122
commit a855b66517
2 changed files with 3 additions and 3 deletions

View File

@ -28,7 +28,7 @@
</at-panel-body>
</at-panel>
<at-panel ng-if="$state.current.name.includes('permissions')">
<at-panel ng-if="$state.current.name.includes('permissions')" on-dismiss="credentials">
<at-panel-heading>{{:: vm.strings.get('permissions.TITLE') }}</at-panel-heading>
<at-tab-group>

View File

@ -16,7 +16,7 @@ function AtPanelController ($state) {
};
vm.dismiss = () => {
$state.go('^');
$state.go(scope.onDismiss || '^');
};
vm.use = child => {
@ -38,7 +38,7 @@ function atPanel (pathService, _$animate_) {
link: atPanelLink,
scope: {
state: '=',
animate: '@'
onDismiss: '@'
}
};
}