mirror of
https://github.com/ansible/awx.git
synced 2026-02-18 19:50:05 -03:30
Deleting label passes current page number for pagination
This commit is contained in:
@@ -63,13 +63,13 @@ export default
|
|||||||
Rest.setUrl(url);
|
Rest.setUrl(url);
|
||||||
Rest.post({"disassociate": true, "id": labelId})
|
Rest.post({"disassociate": true, "id": labelId})
|
||||||
.success(function () {
|
.success(function () {
|
||||||
scope.search("job_template");
|
scope.search("job_template", scope.$parent.job_template_page);
|
||||||
Wait('stop');
|
Wait('stop');
|
||||||
})
|
})
|
||||||
.error(function (data, status) {
|
.error(function (data, status) {
|
||||||
Wait('stop');
|
Wait('stop');
|
||||||
ProcessErrors(scope, data, status, null, { hdr: 'Error!',
|
ProcessErrors(scope, data, status, null, { hdr: 'Error!',
|
||||||
msg: 'Could not disacssociate label from JT. Call to ' + url + ' failed. DELETE returned status: ' + status });
|
msg: 'Could not disassociate label from JT. Call to ' + url + ' failed. DELETE returned status: ' + status });
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -93,6 +93,7 @@ export default
|
|||||||
scope.count = null;
|
scope.count = null;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user