[UI] Added asynchronous timeout utility.

This commit is contained in:
Fabio Manganiello 2024-07-15 22:26:42 +02:00
parent ef4d0bd38c
commit 75aed6af92
Signed by untrusted user: blacklight
GPG key ID: D90FBA7F76362774

View file

@ -72,7 +72,11 @@ export default {
action: action,
args: args,
}, timeout, showError);
}
},
timeout(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
},
},
}
</script>