fiveapples 0.0.6 → 0.0.7

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: 819272c422885597ec73f8dd633cad031e882f03e9c5ee3d009a48792d1ae6eb
4
- data.tar.gz: 96e67d9c2cbe9538ca91f30565f8c15553357a7d9c4880c6eccb45454de45917
3
+ metadata.gz: 6f1c3db06ef8a53cd1ccc2ec2050058c996d0b682c61773361dde6fcd7deefa4
4
+ data.tar.gz: 119d9e787983a1ae7e5ad084e44f64f93b5e28ca535e19355910f1dfb4ef7ecf
5
5
  SHA512:
6
- metadata.gz: bf920145c28718564c5c207cb98eb4800d651e691340f1e670b3e8f794ae062c66bba5db6027c28aa09292effbe949b0fcb2db9f0aca1b9b0476b2c4ef13f62d
7
- data.tar.gz: b8db84aa3f9f1c83ab63d524be0ee57b10804d39d573a23c59e9efacdfd6e4c6b8444108bb69c056d7399117aa8ea118451331877cb349c1a47175d14f4fa590
6
+ metadata.gz: d0233f73df9cb2303d1239795aa83418d7e698436aed5971b81bc27fc58194e136009fa44cd200a1d076d5751cbe2f333eb102ba2f4f493d1a0db5512418d5fd
7
+ data.tar.gz: f7547e4d1f4bd33f9efde96c948bf3b59efe3512e06f7acba66abcdf6a126623e1f090f46d6d82b50b83df37ff0ffbb30eee124b0e541f74611f6f52e72be8ca
@@ -41,6 +41,10 @@ class ODataFiveApples < OData::ServerApp
41
41
  name 'FiveApplesService'
42
42
  namespace 'ODataFiveApples'
43
43
  path_prefix '/odata'
44
+ if Safrano::VERSION >= '0.4.3'
45
+ server_url "http://#{FiveA.host}:#{FiveA.port}"
46
+ end
47
+
44
48
  enable_batch
45
49
  publish_media_model Photo do
46
50
  slug :name
@@ -67,9 +67,10 @@ sap.ui.define(
67
67
  success: _loadavsuccs,
68
68
  error: _loadaverr });
69
69
  },
70
- handleUploadComplete: function() {
71
- FileUpload.onComplete(this);
72
- this.loadAvatar();
70
+ handleUploadComplete: function(oEvent) {
71
+ if (FileUpload.onComplete(this, oEvent)) {
72
+ this.loadAvatar();
73
+ };
73
74
  },
74
75
  handleUploadPress: function() {
75
76
  FileUpload.onPress(this) ;
@@ -181,9 +181,10 @@ sap.ui.define(
181
181
  Breeder._handleValueHelpClose(this, evt);
182
182
  },
183
183
 
184
- handleUploadComplete: function() {
185
- FileUpload.onComplete(this);
186
- this.loadImages();
184
+ handleUploadComplete: function(oEvent) {
185
+ if (FileUpload.onComplete(this, oEvent)) {
186
+ this.loadImages();
187
+ };
187
188
  },
188
189
  handleUploadPress: function() {
189
190
  FileUpload.onPress(this) ;
@@ -30,10 +30,19 @@ function(MessageToast, Base64) {
30
30
 
31
31
  oFileUploader.upload();
32
32
  },
33
- onComplete: function(that){
34
- MessageToast.show("File Uploaded");
35
- var oModel = that.getView().getModel();
36
- oModel.refresh();
33
+ onComplete: function(that, oEvent){
34
+ var oPars = oEvent.getParameters();
35
+ if ( (oPars.status == 204) || (oPars.status == 201)
36
+ || (oPars.status == 200 ) ) {
37
+ MessageToast.show("File Uploaded");
38
+ var oModel = that.getView().getModel();
39
+ oModel.refresh();
40
+ return true;
41
+ } else{
42
+ MessageToast.show("File Upload failed ! ");
43
+ return false;
44
+ }
45
+
37
46
  }
38
47
  };
39
48
  }
@@ -22,13 +22,11 @@ sap.ui.define(
22
22
  onDetailMatched: function(oEvent) {
23
23
  var oObject = oEvent.getParameter("arguments");
24
24
  var sObjectKey =
25
- "cultivar_id='" +
25
+ "cultivar_id=" +
26
26
  oObject.cultivar_id +
27
- "',ptype_id='" +
27
+ ",ptype_id=" +
28
28
  oObject.ptype_id +
29
- "',parent_id='" +
30
- oObject.parent_id +
31
- "'";
29
+ ",parent_id=" + oObject.parent_id ;
32
30
  var sObjectPath = "/parentage(" + sObjectKey + ")";
33
31
 
34
32
  this._sObjectPath = sObjectPath;
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FiveApples
4
- VERSION = '0.0.6'
4
+ VERSION = '0.0.7'
5
5
  end
6
6
 
7
7
  module OpenUI5
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fiveapples
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
- - D.M.
7
+ - oz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-19 00:00:00.000000000 Z
11
+ date: 2020-10-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: safrano
@@ -8649,7 +8649,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
8649
8649
  - !ruby/object:Gem::Version
8650
8650
  version: '0'
8651
8651
  requirements: []
8652
- rubygems_version: 3.1.2
8652
+ rubygems_version: 3.1.4
8653
8653
  signing_key:
8654
8654
  specification_version: 4
8655
8655
  summary: Fiveapples is a fully opensource standalone OData + openui5 demo app.