diff --git a/src/scripts/controllers/development.controller.coffee b/src/scripts/controllers/development.controller.coffee index 710cf5e..3354f71 100644 --- a/src/scripts/controllers/development.controller.coffee +++ b/src/scripts/controllers/development.controller.coffee @@ -26,6 +26,9 @@ SubmitWorkDevelopmentController = ($scope, $rootScope, $state, SubmitWorkService vm.uploadSpecs = -> vm.showUploadSpecs = true + vm.hideUploadSpecs = -> + vm.showUploadSpecs = false + vm.showDefineSpecs = -> vm.showDefineSpecsModal = true vm.activateModal('offlineAccess') diff --git a/src/scripts/controllers/features.controller.coffee b/src/scripts/controllers/features.controller.coffee index cc7ac29..b460fe5 100644 --- a/src/scripts/controllers/features.controller.coffee +++ b/src/scripts/controllers/features.controller.coffee @@ -69,6 +69,9 @@ SubmitWorkFeaturesController = ($scope, $rootScope, SubmitWorkService, SubmitWor vm.showUpload = -> vm.showUploadModal = true + vm.hideUpload = -> + vm.showUploadModal = false + vm.toggleDefineFeatures = -> vm.activeFeature = null vm.addingCustomFeature = true diff --git a/src/scripts/controllers/visual.controller.coffee b/src/scripts/controllers/visual.controller.coffee index d63487b..2e586c9 100644 --- a/src/scripts/controllers/visual.controller.coffee +++ b/src/scripts/controllers/visual.controller.coffee @@ -45,9 +45,15 @@ SubmitWorkVisualController = ($scope, $rootScope, $state, $document, SubmitWorkS vm.showUploadStyles = -> vm.showUploadStylesModal = true + vm.hideUploadStyles = -> + vm.showUploadStylesModal = false + vm.showUrlStyles = -> vm.showUrlStylesModal = true + vm.hideUrlStyles = -> + vm.showUrlStylesModal = false + vm.activateModal = (modal) -> vm.activeStyleModal = modal updateButtons() diff --git a/src/views/parts/upload-features.jade b/src/views/parts/upload-features.jade index 7627e76..6c9c881 100644 --- a/src/views/parts/upload-features.jade +++ b/src/views/parts/upload-features.jade @@ -11,4 +11,6 @@ modal.upload-documents(show="vm.showUploadModal" background-click-close=true) uploading="vm.uploaderUploading" has-errors="vm.uploaderHasErrors" has-files="vm.uploaderHasFiles" - ) \ No newline at end of file + ) + + button(ng-click="vm.hideUpload()") Done \ No newline at end of file diff --git a/src/views/parts/upload-requirements.jade b/src/views/parts/upload-requirements.jade index b23a456..5af325f 100644 --- a/src/views/parts/upload-requirements.jade +++ b/src/views/parts/upload-requirements.jade @@ -9,4 +9,6 @@ modal.upload-documents(show="vm.showUploadSpecs" background-click-close=true) uploading="vm.uploaderUploading" has-errors="vm.uploaderHasErrors" has-files="vm.uploaderHasFiles" - ) \ No newline at end of file + ) + + button(ng-click="vm.hideUploadSpecs()") Done \ No newline at end of file diff --git a/src/views/parts/visual-upload.jade b/src/views/parts/visual-upload.jade index a029af9..ead42d6 100644 --- a/src/views/parts/visual-upload.jade +++ b/src/views/parts/visual-upload.jade @@ -11,4 +11,6 @@ modal.upload-documents(show="vm.showUploadStylesModal" background-click-close=tr uploading="vm.uploaderUploading" has-errors="vm.uploaderHasErrors" has-files="vm.uploaderHasFiles" - ) \ No newline at end of file + ) + + button(ng-click="vm.hideUploadStyles()") Done \ No newline at end of file