project-booster-vue 9.12.0 → 9.13.0
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
|
@@ -220,7 +220,7 @@ The `PbProjectHub` component to access your project.
|
|
|
220
220
|
rest.patch('/api/media/:mediaId', getMediumByIdResolver),
|
|
221
221
|
rest.delete('/api/media/:mediaId', successResolver),
|
|
222
222
|
rest.patch('/api/media/:mediaId', notContentResolver),
|
|
223
|
-
rest.get('/api/inhabitant-projects/:projectId/documents
|
|
223
|
+
rest.get('/api/inhabitant-projects/:projectId/documents', getDocumentsByInhabitantProjectIdResolver),
|
|
224
224
|
rest.get('/api/inhabitant-projects/:projectId/documents/:documentId', getDocumentByIdResolver),
|
|
225
225
|
rest.delete('/api/inhabitant-projects/:projectId/documents/:documentId', successResolver),
|
|
226
226
|
rest.get(
|
|
@@ -237,6 +237,10 @@ The `PbProjectHub` component to access your project.
|
|
|
237
237
|
>
|
|
238
238
|
{{
|
|
239
239
|
components: { PbProjectHub },
|
|
240
|
+
mounted() {
|
|
241
|
+
this.$store.dispatch('media/updateContext', { type: 'MEDIA' });
|
|
242
|
+
this.$store.dispatch('documents/updateContext', { type: 'DOCUMENTS' });
|
|
243
|
+
},
|
|
240
244
|
template: ` <div style="margin: 0 auto;min-height: 100vh;width: 100%;max-width: 1024px;">
|
|
241
245
|
<router-view v-slot="{ Component }">
|
|
242
246
|
<keep-alive include="PbProjectHub">
|
|
@@ -301,6 +305,8 @@ The `PbProjectHub` component to access your project.
|
|
|
301
305
|
{{
|
|
302
306
|
components: { PbProjectHub },
|
|
303
307
|
mounted() {
|
|
308
|
+
this.$store.dispatch('media/updateContext', { type: 'MEDIA' });
|
|
309
|
+
this.$store.dispatch('documents/updateContext', { type: 'DOCUMENTS' });
|
|
304
310
|
this.$router.push({
|
|
305
311
|
name: 'ProjectHub',
|
|
306
312
|
params: { projectId: 'EMPTY' },
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
<div class="pb-project-hub__section-title-container">
|
|
85
85
|
<div class="pb-project-hub__section-title">{{ titleDocument }}</div>
|
|
86
86
|
<pb-media-upload
|
|
87
|
-
v-if="displayedDocuments && displayedDocuments.length > 0"
|
|
87
|
+
v-if="!readOnly && displayedDocuments && displayedDocuments.length > 0"
|
|
88
88
|
storeModuleName="documents"
|
|
89
89
|
:payload="DOCUMENT_UPLOAD_PAYLOAD"
|
|
90
90
|
acceptedFileTypes="image jpeg, image png, image heif, image heic, image/heif-sequence, image/heic-sequence, application
|
|
@@ -258,7 +258,7 @@
|
|
|
258
258
|
'pb-project-hub__section--hidden': !(
|
|
259
259
|
(isLoadingConfigurations || configurations.length > 0 || !!configurationsLoadError) &&
|
|
260
260
|
!isLoadingTools &&
|
|
261
|
-
tools &&
|
|
261
|
+
(tools || readOnly) &&
|
|
262
262
|
configurators.length !== 0
|
|
263
263
|
),
|
|
264
264
|
}"
|
|
@@ -394,7 +394,7 @@
|
|
|
394
394
|
<div class="pb-project-hub__section-title-container">
|
|
395
395
|
<div class="pb-project-hub__section-title">{{ titlePhotoInspiration }}</div>
|
|
396
396
|
<pb-media-upload
|
|
397
|
-
v-if="displayedInspirations && displayedInspirations.length > 0"
|
|
397
|
+
v-if="!readOnly && displayedInspirations && displayedInspirations.length > 0"
|
|
398
398
|
storeModuleName="documents"
|
|
399
399
|
:payload="MEDIA_UPLOAD_PAYLOAD"
|
|
400
400
|
@media-uploaded="handleMediaUploaded"
|