only show users in menu if there are annotations
This commit is contained in:
parent
9558070d8f
commit
696741190a
1 changed files with 1 additions and 1 deletions
|
@ -328,7 +328,7 @@ Ox.AnnotationPanel = function(options, self) {
|
||||||
{id: 'large', title: 'Large', checked: self.options.font == 'large'}
|
{id: 'large', title: 'Large', checked: self.options.font == 'large'}
|
||||||
]}
|
]}
|
||||||
] : [],
|
] : [],
|
||||||
self.options.showUsers ? [
|
self.options.showUsers && self.users.length ? [
|
||||||
{},
|
{},
|
||||||
{id: 'users', title: 'Show Users', disabled: true},
|
{id: 'users', title: 'Show Users', disabled: true},
|
||||||
{group: 'users', min: 1, max: -1, items: self.users.map(function(user) {
|
{group: 'users', min: 1, max: -1, items: self.users.map(function(user) {
|
||||||
|
|
Loading…
Reference in a new issue