Skip to content

Commit

Permalink
Add Done button to upload modals
Browse files Browse the repository at this point in the history
  • Loading branch information
aselbie committed Dec 10, 2015
1 parent 05999aa commit 55a7fa0
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 3 deletions.
3 changes: 3 additions & 0 deletions src/scripts/controllers/development.controller.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
3 changes: 3 additions & 0 deletions src/scripts/controllers/features.controller.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions src/scripts/controllers/visual.controller.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
4 changes: 3 additions & 1 deletion src/views/parts/upload-features.jade
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
)

button(ng-click="vm.hideUpload()") Done
4 changes: 3 additions & 1 deletion src/views/parts/upload-requirements.jade
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
)

button(ng-click="vm.hideUploadSpecs()") Done
4 changes: 3 additions & 1 deletion src/views/parts/visual-upload.jade
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
)

button(ng-click="vm.hideUploadStyles()") Done

0 comments on commit 55a7fa0

Please sign in to comment.