1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-30 22:21:13 +03:00

Merge pull request #4702 from AlexSCorey/4446-TokenDelete

Tokens Properly reload after successful deletion

Reviewed-by: Alex Corey <Alex.swansboro@gmail.com>
             https://github.com/AlexSCorey
This commit is contained in:
softwarefactory-project-zuul[bot] 2019-09-10 20:28:35 +00:00 committed by GitHub
commit f3dc4abe37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -120,7 +120,7 @@ function ListTokensController (
.then(() => {
let reloadListStateParams = null;
if ($scope.tokens.length === 1 && $state.params.token_search &&
if ($scope.vm.tokens.length === 1 && $state.params.token_search &&
!_.isEmpty($state.params.token_search.page) &&
$state.params.token_search.page !== '1') {
const page = `${(parseInt(reloadListStateParams