Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature for additional links in toolbar #511

Merged
merged 3 commits into from
Apr 1, 2021

Conversation

Vedant1202
Copy link
Contributor

Feature for additional links in toolbar of viewer.

Summary

This change provides the ability to put additional links in the toolbar for the slide viewer. This PR should solve #468 . This feature also needs a JSON file which is described in Distro PR-161.

InkedVirtualBox_Ubuntu-18-GSOC_01_04_2021_17_45_12_crop_LI
The new links are appended as shown with the green marker.
The links are customizable with the following parameters:

  1. The URL
  2. The name to be displayed
  3. The icon to be displayed (material icons)
  4. A boolean to choose if the link is to be opened in new tab, or in current tab.

Motivation

Yes it fixes #468

Testing

This has been tested on local system running Ubuntu 18.04, docker-compose version 1.28.6, and Mozilla firefox browser.

Questions

Copy link
Member

@birm birm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please catch the errors in the promise chain such that a malformed/missing additional_links file fails gracefully

@Vedant1202 Vedant1202 requested a review from birm April 1, 2021 16:16
@Vedant1202
Copy link
Contributor Author

@birm I've added the error handler. Let me know if that works fine.

apps/viewer/init.js Outdated Show resolved Hide resolved
apps/viewer/init.js Outdated Show resolved Hide resolved
@Vedant1202 Vedant1202 requested a review from birm April 1, 2021 17:20
Copy link
Member

@birm birm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for working through this!

@birm birm merged commit 180cea8 into camicroscope:develop Apr 1, 2021
@birm birm mentioned this pull request Apr 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants