mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-07 14:27:05 +02:00
fix(acp): small UI fixes for ACP privileges category selector (#6946)
- Add dropdown chevron - Change translations - Safety against `category` not an object
This commit is contained in:
committed by
Julian Lam
parent
c5a093e1f2
commit
57b39d5ba2
@@ -39,10 +39,10 @@ privilegesController.get = function (req, res, callback) {
|
||||
data.allCategories.forEach(function (category) {
|
||||
if (category) {
|
||||
category.selected = category.cid === cid;
|
||||
}
|
||||
|
||||
if (category.selected) {
|
||||
data.selected = category;
|
||||
if (category.selected) {
|
||||
data.selected = category;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -6,9 +6,9 @@
|
||||
</p>
|
||||
|
||||
<p class="lead">
|
||||
Currently viewing privileges for
|
||||
[[admin/manage/categories:privileges.category-selector]]
|
||||
<button type="button" id="category-selector" class="mdl-button mdl-js-button mdl-button--raised mdl-button--colored">
|
||||
{selected}
|
||||
{selected} <i class="fa fa-angle-down"></i>
|
||||
</button>
|
||||
|
||||
<ul class="mdl-menu mdl-menu--bottom-left mdl-js-menu mdl-js-ripple-effect" for="category-selector">
|
||||
|
||||
Reference in New Issue
Block a user