Special case assignee typeahead in personal projects

This commit is contained in:
2015-08-06 22:30:09 -07:00
parent 7f76ebd441
commit 6664d299b9

View File

@@ -171,12 +171,17 @@ class CmdAsana:
def userTypeAhead(self, text, callback):
def runInThread():
users = self.client.workspaces.typeahead(self.state['workspace_id'],
{
'type': 'user',
'query': text,
'count': 5
})
if self.state['workspace_id'] != PERSONAL:
users = self.client.workspaces \
.typeahead(self.state['workspace_id'],
{
'type': 'user',
'query': text,
'count': 5
})
else:
users = [self.me]
callback(users)
self.loop.draw_screen()