Begin working on the QueryStatus application for the requestor to monitor user responses
This commit is contained in:
parent
47b68621c1
commit
a242101b5b
6 changed files with 154 additions and 0 deletions
|
|
@ -26,6 +26,17 @@ export class QueryManager {
|
|||
return this.#queries.has(requestID);
|
||||
};
|
||||
|
||||
static get(requestID) {
|
||||
if (!this.#queries.has(requestID)) { return null };
|
||||
const query = this.#queries.get(requestID);
|
||||
const cloned = foundry.utils.deepClone(query);
|
||||
|
||||
delete cloned.onSubmit;
|
||||
delete cloned.resolve;
|
||||
|
||||
return cloned;
|
||||
};
|
||||
|
||||
static async query(
|
||||
request,
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue