Make Jira integration optional

This commit is contained in:
Fabian 2022-09-29 22:31:32 +02:00
parent 43476b9df3
commit c90d8e7fc8

View File

@ -139,10 +139,13 @@ class App:
add_tasks(["Nothing"])
menu_items.append((1, None))
menu_items.append(("Import Jira task", partial(self.open_new_dialog, self.import_task)))
jira_integration = self.config.jira_url and self.config.jira_token
if jira_integration:
menu_items.append(("Import Jira task", partial(self.open_new_dialog, self.import_task)))
menu_items.append(("Edit tasks", partial(self.open_new_dialog, self.taskEdit)))
menu_items.append(("Report", partial(self.open_new_dialog, self.reportDialog)))
menu_items.append(("Worklog", partial(self.open_new_dialog, self.worklogDialog)))
if jira_integration:
menu_items.append(("Worklog", partial(self.open_new_dialog, self.worklogDialog)))
menu_items.append((1, None))