Revert "Replace generic console.error handlers with window.cloudron.onError"
This reverts commit 7db5a48e35.
This commit is contained in:
@@ -31,7 +31,7 @@ async function onSubmitMemoryLimit() {
|
||||
const limit = tmp === memoryTicks.value[0] ? 0 : tmp; // this will reset to app minimum
|
||||
|
||||
const [error] = await appsModel.configure(props.app.id, 'memory_limit', { memoryLimit: limit });
|
||||
if (error) return window.cloudron.onError(error);
|
||||
if (error) return console.error(error);
|
||||
|
||||
// give polling some time
|
||||
setTimeout(() => memoryLimitBusy.value = false, 4000);
|
||||
@@ -41,7 +41,7 @@ async function onSubmitCpuQuota() {
|
||||
cpuQuotaBusy.value = true;
|
||||
|
||||
const [error] = await appsModel.configure(props.app.id, 'cpu_quota', { cpuQuota: parseInt(cpuQuota.value) });
|
||||
if (error) return window.cloudron.onError(error);
|
||||
if (error) return console.error(error);
|
||||
|
||||
currentCpuQuota.value = parseInt(cpuQuota.value);
|
||||
|
||||
@@ -83,7 +83,7 @@ const devicesChanged = computed(() => {
|
||||
|
||||
onMounted(async () => {
|
||||
const [error, result] = await systemModel.memory();
|
||||
if (error) return window.cloudron.onError(error);
|
||||
if (error) return console.error(error);
|
||||
|
||||
cpuQuota.value = props.app.cpuQuota;
|
||||
currentCpuQuota.value = props.app.cpuQuota;
|
||||
|
||||
Reference in New Issue
Block a user