|
|
@ -53,7 +53,8 @@ module.exports = function($scope, |
|
|
|
WorkPackageAuthorization, |
|
|
|
WorkPackageAuthorization, |
|
|
|
PERMITTED_MORE_MENU_ACTIONS, |
|
|
|
PERMITTED_MORE_MENU_ACTIONS, |
|
|
|
HookService, |
|
|
|
HookService, |
|
|
|
$window |
|
|
|
$window, |
|
|
|
|
|
|
|
WorkPackageAttachmentsService |
|
|
|
) { |
|
|
|
) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -374,9 +375,14 @@ module.exports = function($scope, |
|
|
|
vm.isSpecified = WorkPackagesDisplayHelper.isSpecified; |
|
|
|
vm.isSpecified = WorkPackagesDisplayHelper.isSpecified; |
|
|
|
vm.hasNiceStar = WorkPackagesDisplayHelper.hasNiceStar; |
|
|
|
vm.hasNiceStar = WorkPackagesDisplayHelper.hasNiceStar; |
|
|
|
vm.showToggleButton = WorkPackagesDisplayHelper.showToggleButton; |
|
|
|
vm.showToggleButton = WorkPackagesDisplayHelper.showToggleButton; |
|
|
|
|
|
|
|
vm.filesExist = false; |
|
|
|
|
|
|
|
|
|
|
|
activate(); |
|
|
|
activate(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
WorkPackageAttachmentsService.hasAttachments(vm.workPackage).then(function(bool) { |
|
|
|
|
|
|
|
vm.filesExist = bool; |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
function activate() { |
|
|
|
function activate() { |
|
|
|
EditableFieldsState.forcedEditState = false; |
|
|
|
EditableFieldsState.forcedEditState = false; |
|
|
|
$scope.$watch('workPackage.schema', function(schema) { |
|
|
|
$scope.$watch('workPackage.schema', function(schema) { |
|
|
|