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 userTypeAhead(self, text, callback):
|
||||||
def runInThread():
|
def runInThread():
|
||||||
users = self.client.workspaces.typeahead(self.state['workspace_id'],
|
if self.state['workspace_id'] != PERSONAL:
|
||||||
{
|
users = self.client.workspaces \
|
||||||
'type': 'user',
|
.typeahead(self.state['workspace_id'],
|
||||||
'query': text,
|
{
|
||||||
'count': 5
|
'type': 'user',
|
||||||
})
|
'query': text,
|
||||||
|
'count': 5
|
||||||
|
})
|
||||||
|
else:
|
||||||
|
users = [self.me]
|
||||||
|
|
||||||
callback(users)
|
callback(users)
|
||||||
self.loop.draw_screen()
|
self.loop.draw_screen()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user