mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-05 07:10:30 +01:00
closes #4390
This commit is contained in:
@@ -79,9 +79,7 @@
|
||||
"textClass": "visible-xs-inline",
|
||||
"text": "\\[\\[global:header.search\\]\\]",
|
||||
"properties": {
|
||||
"installed": {
|
||||
"search": true
|
||||
}
|
||||
"searchInstalled": true
|
||||
}
|
||||
}
|
||||
]
|
||||
@@ -20,7 +20,7 @@
|
||||
if ((properties.loggedIn && !data.config.loggedIn) ||
|
||||
(properties.globalMod && !data.isGlobalMod && !data.isAdmin) ||
|
||||
(properties.adminOnly && !data.isAdmin) ||
|
||||
(properties.installed && properties.installed.search && !data.searchEnabled)) {
|
||||
(properties.searchInstalled && !data.searchEnabled)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -84,6 +84,15 @@
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<strong>Installed Plugins Required:</strong>
|
||||
|
||||
<div class="checkbox">
|
||||
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect">
|
||||
<input class="mdl-switch__input" type="checkbox" name="property:searchInstalled" <!-- IF enabled.properties.searchInstalled -->checked<!-- ENDIF enabled.properties.searchInstalled -->/>
|
||||
<span class="mdl-switch__label"><strong>Search plugin</strong></span>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<button class="btn btn-danger delete">Delete</button>
|
||||
<!-- IF enabled.enabled -->
|
||||
<button class="btn btn-warning toggle">Disable</button>
|
||||
|
||||
Reference in New Issue
Block a user