diff --git a/dashboard/src/components/app/Resources.vue b/dashboard/src/components/app/Resources.vue index 16ab4de69..6f1a64db5 100644 --- a/dashboard/src/components/app/Resources.vue +++ b/dashboard/src/components/app/Resources.vue @@ -34,7 +34,7 @@ async function onSubmitMemoryLimit() { if (error) return console.error(error); // give polling some time - setTimeout(() => memoryLimitBusy.value = false, 2000); + setTimeout(() => memoryLimitBusy.value = false, 4000); } async function onSubmitCpuQuota() { @@ -46,7 +46,7 @@ async function onSubmitCpuQuota() { currentCpuQuota.value = parseInt(cpuQuota.value); // give polling some time - setTimeout(() => cpuQuotaBusy.value = false, 2000); + setTimeout(() => cpuQuotaBusy.value = false, 4000); } async function onSubmitDevices() { @@ -62,16 +62,19 @@ async function onSubmitDevices() { const [error] = await appsModel.configure(props.app.id, 'devices', { devices: devs }); if (error && error.status === 400) { devicesError.value = error.body.message; - return devicesBusy.value = false; + devicesBusy.value = false; + return; } else if (error) { - return console.error(error); + devicesBusy.value = false; + console.error(error); + return; } // give polling some time setTimeout(() => { devicesBusy.value = false; currentDevices.value = Object.keys(devs); - }, 2000); + }, 4000); } const devicesChanged = computed(() => { @@ -119,7 +122,7 @@ onMounted(async () => {
- +
@@ -139,8 +142,8 @@ onMounted(async () => {
-
- +
+ @@ -149,6 +152,6 @@ onMounted(async () => {
- + \ No newline at end of file diff --git a/dashboard/src/views/AppConfigureView.vue b/dashboard/src/views/AppConfigureView.vue index 46ad9ddf7..d35deb708 100644 --- a/dashboard/src/views/AppConfigureView.vue +++ b/dashboard/src/views/AppConfigureView.vue @@ -148,7 +148,7 @@ function isViewEnabled(view, errorState) { } else if (view === 'repair') { return errorState === ISTATES.PENDING_RESTART || errorState === ISTATES.PENDING_CONFIGURE || ISTATES.PENDING_INSTALL || ISTATES.PENDING_DEBUG; } else if (view === 'resources') { - return errorState === ISTATES.PENDING_RESIZE; + return errorState === ISTATES.PENDING_RESIZE || errorState === ISTATES.PENDING_RECREATE_CONTAINER; } else if (view === 'storage') { return errorState === ISTATES.PENDING_DATA_DIR_MIGRATION || errorState === ISTATES.PENDING_RECREATE_CONTAINER; } else if (view === 'services') {