forked from platypush/platypush
[UI] Added asynchronous timeout
utility.
This commit is contained in:
parent
ef4d0bd38c
commit
75aed6af92
1 changed files with 5 additions and 1 deletions
|
@ -72,7 +72,11 @@ export default {
|
||||||
action: action,
|
action: action,
|
||||||
args: args,
|
args: args,
|
||||||
}, timeout, showError);
|
}, timeout, showError);
|
||||||
}
|
},
|
||||||
|
|
||||||
|
timeout(ms) {
|
||||||
|
return new Promise(resolve => setTimeout(resolve, ms));
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in a new issue