Skip to content

Commit

Permalink
fix(photosphere): restore 'Images' tab in models manager
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasRichel committed Dec 5, 2024
1 parent 0bd1ad8 commit 5e1f3aa
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 20 deletions.
24 changes: 12 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
},
"dependencies": {
"@bimdata/bcf-components": "6.4.4",
"@bimdata/components": "1.7.1",
"@bimdata/design-system": "2.2.1-beta.7",
"@bimdata/components": "1.7.2",
"@bimdata/design-system": "2.2.1-beta.8",
"@bimdata/typescript-fetch-api-client": "10.17.2",
"@bimdata/viewer": "2.7.0-alpha-photosphere.1",
"@bimdata/viewer": "2.7.0-alpha.photosphere.2",
"@paddle/paddle-js": "^1.3.2",
"async": "^3.2.6",
"dms-conversion": "^3.1.3",
Expand Down
13 changes: 10 additions & 3 deletions src/components/specific/models/models-manager/ModelsManager.vue
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ import PDFManager from "./pdf-manager/PDFManager.vue";
import PhotosphereManager from "./photosphere-manager/PhotosphereManager.vue";
import PointCloudManager from "./point-cloud-manager/PointCloudManager.vue";
const { DWG, DXF, IFC, META_BUILDING, PDF, PHOTOSPHERE, PHOTOSPHERE_BUILDING, POINT_CLOUD } =
const { DWG, DXF, IFC, JPEG, META_BUILDING, PDF, PHOTOSPHERE, PHOTOSPHERE_BUILDING, PNG, POINT_CLOUD } =
MODEL_TYPE;
const tabsDef = [
Expand Down Expand Up @@ -130,9 +130,16 @@ const tabsDef = [
beta: true
},
{
id: "photos",
text: "Photos",
id: "images",
text: "Images",
icon: "fileImagePolychrome",
modelTypes: [JPEG, PNG],
component: "DWGManager"
},
{
id: "photosphere",
text: "Photosphere",
icon: "filePhotospherePolychrome",
modelTypes: [PHOTOSPHERE, PHOTOSPHERE_BUILDING],
component: "PhotosphereManager"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@

<div v-else class="model-name-cell__content">
<template
v-if="model.type === MODEL_TYPE.META_BUILDING || MODEL_TYPE.PHOTOSPHERE_BUILDING"
v-if="model.type === MODEL_TYPE.META_BUILDING || model.type === MODEL_TYPE.PHOTOSPHERE_BUILDING"
>
<BIMDataIconBuilding size="s" />
</template>
Expand Down
2 changes: 1 addition & 1 deletion src/config/models.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ const MODEL_CONFIG = Object.freeze({
[MODEL_TYPE.PHOTOSPHERE]: {
ext: [MODEL_EXTENSIONS.JPEG, MODEL_EXTENSIONS.JPG],
window: WINDOWS.PHOTOSPHERE,
icon: "fileImagePolychrome",
icon: "filePhotospherePolychrome",
},
[MODEL_TYPE.PHOTOSPHERE_BUILDING]: {
ext: [],
Expand Down

0 comments on commit 5e1f3aa

Please sign in to comment.