Disable outline button when unavailable#3054
Conversation
There was a problem hiding this comment.
A shorter solution for this would be: document.getElementById('viewOutline').disabled = !outline;
|
Personally I like this idea! |
|
/botio-linux preview |
From: Bot.io (Linux)ReceivedCommand cmd_preview from @waddlesplash received. Current queue size: 0 Live output at: http://107.21.233.14:8877/55620789660af52/output.txt |
From: Bot.io (Linux)SuccessFull output at http://107.21.233.14:8877/55620789660af52/output.txt Total script time: 0.16 mins Published |
|
Very nice! |
|
@waddlesplash I've removed the |
|
/botio-linux preview |
From: Bot.io (Linux)ReceivedCommand cmd_preview from @waddlesplash received. Current queue size: 1 Live output at: http://107.21.233.14:8877/50f761e11ae9955/output.txt |
From: Bot.io (Linux)SuccessFull output at http://107.21.233.14:8877/50f761e11ae9955/output.txt Total script time: 0.18 mins Published |
|
Squash then good to go. |
Disable outline button when unavailable
|
The button is still sort-of clickable, at least that's the graphics for it. Actually, even the active button is clickable and that leads me to think that it has some action (like closing the sidebar), when in fact it doesn't. What about removing both buttons altogether when only one options is available? Imo would provide better experience. |
This is a little accessibility that bugs me, the outline button is clickable although there's no outline available. This PR disables the button (but still creates the
DocumentOutlineView).Thoughts on this? If you like this, maybe I should just prevent the creation of a
DocumentOutlineViewin cases where there's no outline?