GlFilteredSearch - Add readonly state to search bar and tokens
Problem to solve
For gitlab#344452 (closed) we need to show the GlFilteredSearch
and tokens as read-only as certain roles don't have access to other terms.
Designs
Proposal
- Add a
readonly
property toGlFilteredSearch
. When true:- Don't show the suggestions list.
- Don't show the clear
X
button. - Don't allow the user to type or clear any existing text or tokens.
- Add a
disabled
property toGlFilteredSearchToken
. When true:- Don't allow the user to change it.
- Don't show the clear
X
postfix.
Edited by Jiaan Louw