@mongoosejs/studio 0.0.72 → 0.0.74

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.
@@ -1058,7 +1058,7 @@ appendCSS(__webpack_require__(/*! ./document.css */ "./frontend/src/document/doc
1058
1058
 
1059
1059
  module.exports = app => app.component('document', {
1060
1060
  template: template,
1061
- props: ['model', 'documentId', 'user', 'roles'],
1061
+ props: ['model', 'documentId', 'user', 'roles', 'hasAPIKey'],
1062
1062
  data: () => ({
1063
1063
  schemaPaths: [],
1064
1064
  status: 'init',
@@ -1089,6 +1089,9 @@ module.exports = app => app.component('document', {
1089
1089
  },
1090
1090
  computed: {
1091
1091
  canManipulate() {
1092
+ if (!this.hasAPIKey) {
1093
+ return true;
1094
+ }
1092
1095
  if (!this.roles) {
1093
1096
  return false;
1094
1097
  }
@@ -11510,7 +11513,7 @@ app.component('app-component', {
11510
11513
  <div v-else-if="!hasAPIKey || user">
11511
11514
  <navbar :user="user" :roles="roles" />
11512
11515
  <div class="view">
11513
- <router-view :key="$route.fullPath" :user="user" :roles="roles" />
11516
+ <router-view :key="$route.fullPath" :user="user" :roles="roles" :hasAPIKey="hasAPIKey" />
11514
11517
  </div>
11515
11518
  </div>
11516
11519
  </div>
@@ -11,7 +11,7 @@ appendCSS(require('./document.css'));
11
11
 
12
12
  module.exports = app => app.component('document', {
13
13
  template: template,
14
- props: ['model', 'documentId', 'user', 'roles'],
14
+ props: ['model', 'documentId', 'user', 'roles', 'hasAPIKey'],
15
15
  data: () => ({
16
16
  schemaPaths: [],
17
17
  status: 'init',
@@ -42,6 +42,9 @@ module.exports = app => app.component('document', {
42
42
  },
43
43
  computed: {
44
44
  canManipulate() {
45
+ if (!this.hasAPIKey) {
46
+ return true;
47
+ }
45
48
  if (!this.roles) {
46
49
  return false;
47
50
  }
@@ -59,7 +59,7 @@ app.component('app-component', {
59
59
  <div v-else-if="!hasAPIKey || user">
60
60
  <navbar :user="user" :roles="roles" />
61
61
  <div class="view">
62
- <router-view :key="$route.fullPath" :user="user" :roles="roles" />
62
+ <router-view :key="$route.fullPath" :user="user" :roles="roles" :hasAPIKey="hasAPIKey" />
63
63
  </div>
64
64
  </div>
65
65
  </div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mongoosejs/studio",
3
- "version": "0.0.72",
3
+ "version": "0.0.74",
4
4
  "dependencies": {
5
5
  "archetype": "0.13.1",
6
6
  "csv-stringify": "6.3.0",