oceanhelm 0.0.16 → 0.0.18

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oceanhelm",
3
- "version": "0.0.16",
3
+ "version": "0.0.18",
4
4
  "description": "Oceanhelm's highly customizable library",
5
5
  "private": false,
6
6
  "type": "module",
@@ -329,15 +329,13 @@ export default {
329
329
  grantAccess(vessel) {
330
330
  const { role, vessel: userVessel, categories = [] } = this.userProfile;
331
331
 
332
- // Assign marine-staff only
333
- this.userRole = categories.includes('marine-staff') ? 'marine-staff' : 'staff';
332
+ const isMarineStaff = categories.includes('marine-staff');
334
333
 
335
334
  return (
336
335
  role === 'owner' ||
337
- role === 'marine-staff' ||
336
+ isMarineStaff ||
338
337
  (role === 'captain' && userVessel === vessel.name)
339
338
  );
340
-
341
339
  },
342
340
 
343
341
  getDaysToExpiry(expiry_date) {
@@ -171,7 +171,7 @@ export const defaultMenuItems = [
171
171
  type: 'button',
172
172
  label: 'Vessel Log',
173
173
  icon: 'bi bi-file-ruled',
174
- action: 'coming-soon',
174
+ action: 'vessel-log',
175
175
  roles: ['owner', 'staff', 'captain'],
176
176
  categories: ['marine-staff']
177
177