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

toolbar: disable n-window selector if appropriate #1979

Merged
merged 1 commit into from
Nov 5, 2024

Conversation

oliver-sanders
Copy link
Member

@oliver-sanders oliver-sanders commented Oct 29, 2024

Check List

  • I have read CONTRIBUTING.md and added my name as a Code Contributor.
  • Contains logically grouped changes (else tidy your branch by rebase).
  • Does not contain off-topic changes (use other PRs for other changes).
  • Applied any dependency changes to both setup.cfg (and conda-environment.yml if present).
  • Tests are included (or explain why tests are not needed).
  • Changelog entry included if this is a change that can affect users
  • Cylc-Doc pull request opened if required at cylc/cylc-doc/pull/XXXX.
  • If this is a bug fix, PR should be raised against the relevant ?.?.x branch.

@oliver-sanders oliver-sanders added this to the 2.7.0 milestone Oct 29, 2024
@oliver-sanders oliver-sanders self-assigned this Oct 29, 2024
* Closes cylc#1845
* Disable the n-window selector if the authenticated user does not
  have the required permissions to run the setGraphWindowExtent
  mutation.
@@ -108,6 +108,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<v-select
v-model="nWindow"
:items="[0,1,2,3]"
:disabled="!user.permissions?.includes('setGraphWindowExtent')"
Copy link
Member

Choose a reason for hiding this comment

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

This could be on the v-chip rather than the v-select

<!-- n-window selector -->
<v-chip
:disabled="isStopped"

Copy link
Member Author

@oliver-sanders oliver-sanders Nov 4, 2024

Choose a reason for hiding this comment

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

The reason I didn't do this is so that users can still access the help text explaining what the control is for as "n=1" is not especially explanatory by itself.

@hjoliver hjoliver merged commit ad42894 into cylc:master Nov 5, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

workspace toolbar: the n-window selector should be disabled according to permissions
3 participants