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:
Andrew Bogott 2023-07-31 13:25:01 -05:00
parent 3954cea91c
commit aab800ceb7

View File

@ -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;