diff --git a/console/deploy/console.yaml b/console/deploy/console.yaml
index 6cd7960..931d41c 100644
--- a/console/deploy/console.yaml
+++ b/console/deploy/console.yaml
@@ -55,7 +55,7 @@ spec:
serviceAccountName: fission-console
containers:
- name: console
- image: naeel/fission-console:v1.3.81
+ image: naeel/fission-console:v1.3.82
imagePullPolicy: Always
ports:
- containerPort: 8090
diff --git a/console/ui/index.html b/console/ui/index.html
index f7f065b..ad458a1 100644
--- a/console/ui/index.html
+++ b/console/ui/index.html
@@ -102,7 +102,7 @@
NUBES
FISSION CONSOLE
- v1.3.81
+ v1.3.82
@@ -522,7 +522,7 @@
- v1.3.81
+ v1.3.82
diff --git a/console/ui/js/functions.js b/console/ui/js/functions.js
index 32ccf43..6c92ea5 100644
--- a/console/ui/js/functions.js
+++ b/console/ui/js/functions.js
@@ -447,22 +447,13 @@ async function submitClone() {
if (errEl) errEl.style.display = 'none';
try {
- var resp = await apiFetch('/functions/' + encodeURIComponent(srcName) + '/clone', {
- method: 'POST',
- headers: {'Content-Type': 'application/json'},
- body: JSON.stringify({new_name: newName})
- });
- var data = await resp.json();
- if (!resp.ok) {
- if (errEl) { errEl.textContent = data.error || ('Ошибка ' + resp.status); errEl.style.display = 'block'; }
- return;
- }
+ var data = await requestJSON(API_BASE + '/functions/' + encodeURIComponent(srcName) + '/clone', 'POST', {new_name: newName});
// Успех — закрываем модалку, обновляем список
closeEdit();
setStatus('Функция «' + newName + '» создана как копия «' + srcName + '»', false);
await reloadAll();
} catch(e) {
- if (errEl) { errEl.textContent = 'Сетевая ошибка: ' + e.message; errEl.style.display = 'block'; }
+ if (errEl) { errEl.textContent = e.message; errEl.style.display = 'block'; }
} finally {
if (btn) { btn.disabled = false; btn.textContent = 'Клонировать'; }
}