mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
convert helper function to native js
This commit is contained in:
@@ -146,7 +146,13 @@ export const showAll = (vm) => {
|
||||
|
||||
// waits n milliseconds and then promise resolves
|
||||
// usage: await wait(500);
|
||||
export const wait = (n) => timer(n).pipe(take(1)).toPromise();
|
||||
export const wait = (n) => {
|
||||
return new Promise((resolve) => {
|
||||
setTimeout(() => {
|
||||
resolve();
|
||||
}, n);
|
||||
});
|
||||
};
|
||||
|
||||
// Gets a localVue with custom directives
|
||||
export function getLocalVue(instrumentLocalization = false) {
|
||||
|
||||
Reference in New Issue
Block a user