@fishawack/lab-velocity 2.0.0-beta.21 → 2.0.0-beta.22

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.
@@ -34,7 +34,7 @@
34
34
  </VelBasic>
35
35
  <slot v-if="displayActions" name="table-action">
36
36
  <VelButton
37
- v-if="displayEditAction"
37
+ v-if="displayCreateAction"
38
38
  size="large"
39
39
  type="primary"
40
40
  tag="a"
@@ -141,6 +141,10 @@ export default {
141
141
  type: Boolean,
142
142
  default: true,
143
143
  },
144
+ displayCreateAction: {
145
+ type: Boolean,
146
+ default: true,
147
+ },
144
148
  displayEditAction: {
145
149
  type: Boolean,
146
150
  default: true,
@@ -158,6 +158,8 @@ export default [
158
158
  },
159
159
  defaults: `include=company&filter[company_id]=${model.id}`,
160
160
  "fixed-height": false,
161
+ "display-create-action":
162
+ $store.getters.can("write users"),
161
163
  "display-edit-action":
162
164
  $store.getters.can("write users"),
163
165
  });
@@ -64,8 +64,10 @@ export function meta(name = "default", properties = {}) {
64
64
  },
65
65
  defaults: resource.defaults,
66
66
  "fixed-height": false,
67
- "display-edit-action":
67
+ "display-create-action":
68
68
  resource.permissions.create(props),
69
+ "display-edit-action":
70
+ resource.permissions.edit(props),
69
71
  });
70
72
  },
71
73
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fishawack/lab-velocity",
3
- "version": "2.0.0-beta.21",
3
+ "version": "2.0.0-beta.22",
4
4
  "description": "Avalere Health branded style system",
5
5
  "scripts": {
6
6
  "setup": "npm ci || npm i && npm run content",