jira-integration: Hide JIRA part in project edition if not activated
If JIRA is not activated the part to do the synchronization with the server in the project edition shouldn't be visible. FEA: ItEr77S16JiraAndTimConnectorContributionIntegration
This commit is contained in:
parent
c956b17542
commit
87747a1cdc
4 changed files with 15 additions and 1 deletions
|
|
@ -148,4 +148,6 @@ public interface IOrderModel extends IIntegrationEntityModel {
|
|||
boolean isOnlyChildAndParentAlreadyInUseByHoursOrExpenses(
|
||||
OrderElement orderElement);
|
||||
|
||||
boolean isJiraActivated();
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1855,4 +1855,8 @@ public class OrderCRUDController extends GenericForwardComposer {
|
|||
}
|
||||
}
|
||||
|
||||
public boolean isJiraActivated() {
|
||||
return orderModel.isJiraActivated();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -928,4 +928,11 @@ public class OrderModel extends IntegrationEntityModel implements IOrderModel {
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
@Transactional(readOnly = true)
|
||||
public boolean isJiraActivated() {
|
||||
return configurationDAO.getConfiguration().getJiraConfiguration()
|
||||
.isJiraActivated();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -281,7 +281,8 @@
|
|||
</grid>
|
||||
</groupbox>
|
||||
</groupbox>
|
||||
<groupbox style="margin-top: 5px" sclass="jiraLabel" closable="false">
|
||||
<groupbox style="margin-top: 5px" sclass="jiraLabel" closable="false"
|
||||
visible="@{controller.jiraActivated}">
|
||||
<caption label="${i18n:_('JIRA import information')}" />
|
||||
<separator spacing="10px"/>
|
||||
<hbox width="100%">
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue