Commit 83941288 authored by Simon Knox's avatar Simon Knox

hide locked tokens

parent b80403a3
......@@ -38,6 +38,8 @@ class FilteredSearchVisualTokens {
}
static createVisualTokenElementHTML(canEdit = true) {
if (!canEdit) return '';
let removeTokenMarkup = '';
if (canEdit) {
removeTokenMarkup = `
......@@ -48,7 +50,7 @@ class FilteredSearchVisualTokens {
}
return `
<div class="selectable" role="button">
<div class="selectable" role="button" ${canEdit ? '' : 'style="display: none;"'}>
<div class="name"></div>
<div class="value-container">
<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