fix background task check
This commit is contained in:
parent
6d1f46a96d
commit
8dd47e770f
1 changed files with 2 additions and 2 deletions
|
@ -45,12 +45,12 @@ pandora.ui.item = function() {
|
||||||
var note = Ox.Element()
|
var note = Ox.Element()
|
||||||
.css({marginTop: '32px', fontSize: '12px', textAlign: 'center'})
|
.css({marginTop: '32px', fontSize: '12px', textAlign: 'center'})
|
||||||
pandora.$ui.contentPanel.replaceElement(1, note);
|
pandora.$ui.contentPanel.replaceElement(1, note);
|
||||||
if (pandora.user.username == item.user || pandora.hasCapability('canSeeAllTasks')) {
|
if (pandora.user.username == result.data.user || pandora.hasCapability('canSeeAllTasks')) {
|
||||||
pandora.api.getTasks({
|
pandora.api.getTasks({
|
||||||
user: pandora.hasCapability('canSeeAllTasks') ? '' : pandora.user.username
|
user: pandora.hasCapability('canSeeAllTasks') ? '' : pandora.user.username
|
||||||
}, function(result_) {
|
}, function(result_) {
|
||||||
var tasks = result_.data.items.filter(function(task) { return task.item == item})
|
var tasks = result_.data.items.filter(function(task) { return task.item == item})
|
||||||
if (tasks.length == 0) {
|
if (tasks.length > 0) {
|
||||||
html = Ox._(
|
html = Ox._(
|
||||||
'<i>{0}</i> is currently processed. '
|
'<i>{0}</i> is currently processed. '
|
||||||
+ '{1} view will be available in a moment.',
|
+ '{1} view will be available in a moment.',
|
||||||
|
|
Loading…
Reference in a new issue