@steedos/standard-object-database 2.4.0-beta.25 → 2.4.0-beta.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13,8 +13,9 @@ module.exports = {
13
13
  }
14
14
  });
15
15
  },
16
- customizeVisible: function(object_name, record_id, record_permissions, record){
17
- return Creator.baseObject.actions.standard_new.visible() && record.is_system;
16
+ customizeVisible: function(object_name, record_id, record_permissions, data){
17
+ var record = data && data.record;
18
+ return Creator.baseObject.actions.standard_new.visible() && record.is_system;
18
19
  },
19
20
  /*
20
21
  standard_new: function (object_name, record_id, fields){
@@ -31,8 +31,9 @@ module.exports = {
31
31
  });
32
32
 
33
33
  },
34
- customizeVisible: function(object_name, record_id, record_permissions, record){
35
- return Creator.baseObject.actions.standard_new.visible() && record.is_system;
34
+ customizeVisible: function(object_name, record_id, record_permissions, data){
35
+ var record = data && data.record;
36
+ return Creator.baseObject.actions.standard_new.visible() && record.is_system;
36
37
  },
37
38
  copy: function(object_name, record_id){
38
39
  let newRecord = null; // _.clone(Creator.getListView(Session.get("object_name"), record_id));
@@ -87,7 +88,7 @@ module.exports = {
87
88
  }
88
89
  Steedos.Page.Form.StandardNew.render(Session.get("app_id"), 'object_listviews', t("creator_list_copy_list_view"), data, {});
89
90
  },
90
- copyVisible: function(object_name, record_id, record_permissions, record){
91
+ copyVisible: function(object_name, record_id, record_permissions, data){
91
92
  return true;
92
93
  },
93
94
  showDesign: function (object_name, record_id) {
@@ -24,7 +24,8 @@ module.exports = {
24
24
  }
25
25
  });
26
26
  },
27
- customizeVisible: function(object_name, record_id, record_permissions, record){
27
+ customizeVisible: function(object_name, record_id, record_permissions, data){
28
+ var record = data && data.record;
28
29
  if(!record){
29
30
  record = {}
30
31
  }
@@ -42,7 +42,8 @@ module.exports = {
42
42
  // Steedos.openWindow(Creator.getRelativeUrl("/app/-/" + record.name + "/grid/all"))
43
43
  // }
44
44
  },
45
- show_objectVisible: function(object_name, record_id, record_permissions, record){
45
+ show_objectVisible: function(object_name, record_id, record_permissions, data){
46
+ var record = data && data.record;
46
47
  if(!Creator.isSpaceAdmin()){
47
48
  return false
48
49
  }
@@ -80,7 +81,8 @@ module.exports = {
80
81
  return toastr.error('复制失败: 未启用API');
81
82
  }
82
83
  },
83
- copy_odataVisible: function(object_name, record_id, record_permissions, record){
84
+ copy_odataVisible: function(object_name, record_id, record_permissions, data){
85
+ var record = data && data.record;
84
86
  if(!Creator.isSpaceAdmin()){
85
87
  return false
86
88
  }
@@ -144,7 +146,8 @@ module.exports = {
144
146
  // }
145
147
  // }, null, { iconPath: '/assets/icons' })
146
148
  // },
147
- delete_objectVisible: function(object_name, record_id, record_permissions, record){
149
+ delete_objectVisible: function(object_name, record_id, record_permissions, data){
150
+ var record = data && data.record;
148
151
  if(!Creator.isSpaceAdmin()){
149
152
  return false
150
153
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steedos/standard-object-database",
3
- "version": "2.4.0-beta.25",
3
+ "version": "2.4.0-beta.27",
4
4
  "main": "package.service.js",
5
5
  "private": false,
6
6
  "publishConfig": {
@@ -11,9 +11,9 @@
11
11
  ],
12
12
  "description": "steedos package",
13
13
  "dependencies": {
14
- "@steedos-widgets/amis-lib": "^1.0.21"
14
+ "@steedos-widgets/amis-lib": "^1.0.22"
15
15
  },
16
16
  "repository": {},
17
17
  "license": "MIT",
18
- "gitHead": "1a46fbee4dd51269a59dc80ff30fde5572679c3a"
18
+ "gitHead": "f31ab09de33fddf37183b9764ef18a5e0913952d"
19
19
  }