sign-certificate-modal.controller.js: replace success() with then()
success() is deprecated in modern Angular, causing the 'Sign Certificate' UI to fail. Fixes-bug: 2021588 Change-Id: Idf4ca74b8bc20a17bb53feeeaae9f9481b69b3e4
This commit is contained in:
parent
3954cea91c
commit
aab800ceb7
@ -39,7 +39,7 @@
|
||||
ctrl.model = model;
|
||||
ctrl.form = null;
|
||||
ctrl.title = gettext("CSR");
|
||||
magnum.getCluster(model.newCertificateSpec.cluster_uuid).success(onGetCluster);
|
||||
magnum.getCluster(model.newCertificateSpec.cluster_uuid).then(onGetCluster);
|
||||
|
||||
function onGetCluster(response) {
|
||||
ctrl.model.cluster_name = response.name;
|
||||
|
Loading…
x
Reference in New Issue
Block a user