mirror of
https://github.com/hkalexling/Mango.git
synced 2025-08-02 19:05:32 -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({
|
||||
tags: true,
|
||||
placeholder: 'Tag the title',
|
||||
placeholder: this.isAdmin ? 'Tag the title' : 'No tags found',
|
||||
disabled: !this.isAdmin,
|
||||
templateSelection(state) {
|
||||
const a = document.createElement('a');
|
||||
a.setAttribute('href', `${base_url}tags/${encodeURIComponent(state.text)}`);
|
||||
|
Loading…
x
Reference in New Issue
Block a user