Skip to content

Commit

Permalink
Merge branch 'dev' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
edsilv committed May 25, 2023
2 parents 3b2abde + 7748c15 commit b9f676f
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 110 deletions.
136 changes: 31 additions & 105 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 10 additions & 5 deletions src/content-handlers/iiif/modules/uv-shared-module/Auth1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,16 @@ export class Auth1 {
}

static showDegradedMessage(resource: IExternalResource): void {
const informationArgs: InformationArgs = new InformationArgs(
InformationType.DEGRADED_RESOURCE,
resource
);
Auth1.publish(IIIFEvents.SHOW_INFORMATION, [informationArgs]);
if (resource.kioskService) {
// if it's a kiosk service, open the window immediately.
Auth1.publish(IIIFEvents.OPEN_EXTERNAL_RESOURCE, [[resource]]);
} else {
const informationArgs: InformationArgs = new InformationArgs(
InformationType.DEGRADED_RESOURCE,
resource
);
Auth1.publish(IIIFEvents.SHOW_INFORMATION, [informationArgs]);
}
}

static storeAccessToken(
Expand Down

0 comments on commit b9f676f

Please sign in to comment.