Skip to content

Conversation

josepdecid
Copy link
Contributor

I've seen some issues like #104 that requested a way to choose which buttons to show or hide from the header bar. I have found the same "problem" (lack of feature) with a project of mine. Checking the code, I've seen that there were already a hidePrev and hideNext buttons that were not well documented.

Therefore, I have added a hide option for the rest of the buttons: Clone, Settings, Save and FullScreen/Window. I have also added the information about the existence of these properties in the Readme Props section.

I've noticed now that there are a noticeable amount of changes with the imports. Still, it's just the IDE that auto-sorted it automatically without me noticing it.

Copy link
Contributor

@seveibar seveibar left a comment

Choose a reason for hiding this comment

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

Good to merge but recommending you run prettier

| `hideClone` | `boolean` | Hide `Clone` button from the header bar. | `false` |
| `hideSettings` | `boolean` | Hide `Settings` button from the header bar. | `false` |
| `hideFullScreen` | `boolean` | Hide `FullScreen/Window` button from the header bar. | `false` |
| `hideSave` | `boolean` | Hide `Save` button from the header bar. | `false` |
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice





Copy link
Contributor

Choose a reason for hiding this comment

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

hmm lots of empty lines, can you run prettier against this file

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, I didn't notice this!

@seveibar seveibar merged commit 05e6f9e into UniversalDataTool:master Oct 15, 2021
@josepdecid
Copy link
Contributor Author

Hello @seveibar! It seems that the deployment pipeline has failed, can you check the node version that is failing?
Thanks a lot!

@Cr7st
Copy link

Cr7st commented Dec 28, 2021

It seems that these props don't work in my app. I've set these hide props to be true but these buttons are still displayed.

holmanlam pushed a commit to holmanlam/react-image-annotate that referenced this pull request Jul 20, 2022
# [1.9.0](v1.8.0...v1.9.0) (2022-07-20) ### Bug Fixes * change node version to 14 ([2c02d81](2c02d81)) * Merge pull request [UniversalDataTool#178](https://github.com/holmanlam/react-image-annotate/issues/178) from josepdecid/master ([05e6f9e](05e6f9e)) * update node version ([262f3aa](262f3aa)) ### Features * Merge pull request [UniversalDataTool#185](https://github.com/holmanlam/react-image-annotate/issues/185) from HenryLiangzy/master ([ca3e864](ca3e864)) * new version released ([334f5e0](334f5e0))
@SuhaibMaraqa
Copy link

@Cr7st me too, have you found any solution ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants