Special case assignee typeahead in personal projects
This commit is contained in:
17
cmdasana.py
17
cmdasana.py
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user