Commit 83941288 authored by Simon Knox's avatar Simon Knox

hide locked tokens

parent b80403a3
...@@ -38,6 +38,8 @@ class FilteredSearchVisualTokens { ...@@ -38,6 +38,8 @@ class FilteredSearchVisualTokens {
} }
static createVisualTokenElementHTML(canEdit = true) { static createVisualTokenElementHTML(canEdit = true) {
if (!canEdit) return '';
let removeTokenMarkup = ''; let removeTokenMarkup = '';
if (canEdit) { if (canEdit) {
removeTokenMarkup = ` removeTokenMarkup = `
...@@ -48,7 +50,7 @@ class FilteredSearchVisualTokens { ...@@ -48,7 +50,7 @@ class FilteredSearchVisualTokens {
} }
return ` return `
<div class="selectable" role="button"> <div class="selectable" role="button" ${canEdit ? '' : 'style="display: none;"'}>
<div class="name"></div> <div class="name"></div>
<div class="value-container"> <div class="value-container">
<div class="value"></div> <div class="value"></div>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment