@mongoosejs/studio 0.0.73 → 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.
- package/frontend/public/app.js +5 -2
- package/package.json +1 -1
package/frontend/public/app.js
CHANGED
|
@@ -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>
|