mirror of
https://github.com/hkalexling/Mango.git
synced 2025-08-03 11:25:29 -04:00
Disable the tagging UI for non-admin users
This commit is contained in:
parent
3071d44e32
commit
7d6d3640ad
@ -265,7 +265,8 @@ const tagsComponent = () => {
|
|||||||
|
|
||||||
$('.tag-select').select2({
|
$('.tag-select').select2({
|
||||||
tags: true,
|
tags: true,
|
||||||
placeholder: 'Tag the title',
|
placeholder: this.isAdmin ? 'Tag the title' : 'No tags found',
|
||||||
|
disabled: !this.isAdmin,
|
||||||
templateSelection(state) {
|
templateSelection(state) {
|
||||||
const a = document.createElement('a');
|
const a = document.createElement('a');
|
||||||
a.setAttribute('href', `${base_url}tags/${encodeURIComponent(state.text)}`);
|
a.setAttribute('href', `${base_url}tags/${encodeURIComponent(state.text)}`);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user