Skip to content

Commit

Permalink
feat(public-upload-api): add method getCurrentActivity
Browse files Browse the repository at this point in the history
  • Loading branch information
nd0ut committed Aug 15, 2024
1 parent 70a9b2b commit 3f5b127
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions abstract/UploaderPublicApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,11 @@ export class UploaderPublicApi {
console.warn(`Activity type "${activityType}" not found in the context`);
};

/** @returns {import('./ActivityBlock.js').ActivityType} */
getCurrentActivity = () => {
return this._ctx.$['*currentActivity'];
};

/** @param {boolean} opened */
setModalState = (opened) => {
if (opened && !this._ctx.$['*currentActivity']) {
Expand Down

0 comments on commit 3f5b127

Please sign in to comment.