metadata_presenter 3.0.14 → 3.0.15

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 13c954e4ab0285ae14cf8083c79f3fc63bfeb2219d729ee0cd0d36ba8df6ebe1
4
- data.tar.gz: b542caf5a541e1d641dd15604c131e1b551ffb531df89fd271ec3726ac37238c
3
+ metadata.gz: 748d688aee936ddbfc93a68c3ee6d658938987562b238f815ef852184751d26d
4
+ data.tar.gz: 509757afa039a05d98e142e8fb47930063063af1c2117e8b9cbb2a317a7b198e
5
5
  SHA512:
6
- metadata.gz: db72c7a52f3ecc9db6cde1cb240b0f81bb3d838ae7f365acd591a2d5d0bca7705984b48c1c213ca17622788f1031778b40c58abf8c7d94f4dea06a3f90fe4675
7
- data.tar.gz: d9e1b68c103fe2e12354ae0d0f1f8fc4030b561cdeeca239b65c9e5b862e4edc842f7a4d35b0b115c64697c28faf252cd4017f4f7980a91b167fc0d40bfe136d
6
+ metadata.gz: fe3620821903ecd6d4f44a9cf6535a9c8dbba7bfc03da4e92b6e19557e423058d549f1edcf8c1124aba9e72042c410e16b997e2e14203a82cc112211de1e9904
7
+ data.tar.gz: 34fe18437640f2cccdfebfb04c67164181b2c00bf98d549719bf62b0b02bd8478211ed12f464c9105ee587e3cc325ae44a67a98b95f7a62ed21992bf430b92d8
@@ -30,6 +30,11 @@ module MetadataPresenter
30
30
  user_data.select { |_k, v| v.instance_of?(Hash) && v['original_filename'] =~ filename_regex }.count
31
31
  end
32
32
 
33
+ def show_save_and_return
34
+ page.upload_components.none?
35
+ end
36
+ helper_method :show_save_and_return
37
+
33
38
  private
34
39
 
35
40
  def page
@@ -1,3 +1,3 @@
1
1
  module MetadataPresenter
2
- VERSION = '3.0.14'.freeze
2
+ VERSION = '3.0.15'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metadata_presenter
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.14
4
+ version: 3.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - MoJ Forms