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 +4 -4
- data/lib/model.rb +4 -0
- data/lib/ui5/controller/Breeder_Detail.controller.js +4 -3
- data/lib/ui5/controller/Cultivar_Detail.controller.js +4 -3
- data/lib/ui5/controller/FileUpload.js +13 -4
- data/lib/ui5/controller/Parentage_Detail.controller.js +3 -5
- data/lib/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6f1c3db06ef8a53cd1ccc2ec2050058c996d0b682c61773361dde6fcd7deefa4
|
4
|
+
data.tar.gz: 119d9e787983a1ae7e5ad084e44f64f93b5e28ca535e19355910f1dfb4ef7ecf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d0233f73df9cb2303d1239795aa83418d7e698436aed5971b81bc27fc58194e136009fa44cd200a1d076d5751cbe2f333eb102ba2f4f493d1a0db5512418d5fd
|
7
|
+
data.tar.gz: f7547e4d1f4bd33f9efde96c948bf3b59efe3512e06f7acba66abcdf6a126623e1f090f46d6d82b50b83df37ff0ffbb30eee124b0e541f74611f6f52e72be8ca
|
data/lib/model.rb
CHANGED
@@ -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
|
-
|
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
|
-
|
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
|
-
|
35
|
-
|
36
|
-
|
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
|
-
"
|
27
|
+
",ptype_id=" +
|
28
28
|
oObject.ptype_id +
|
29
|
-
"
|
30
|
-
oObject.parent_id +
|
31
|
-
"'";
|
29
|
+
",parent_id=" + oObject.parent_id ;
|
32
30
|
var sObjectPath = "/parentage(" + sObjectKey + ")";
|
33
31
|
|
34
32
|
this._sObjectPath = sObjectPath;
|
data/lib/version.rb
CHANGED
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.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- oz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
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.
|
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.
|