@abi-software/map-side-bar 2.14.1-simulation.2 → 2.14.1-simulation.3

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": "@abi-software/map-side-bar",
3
- "version": "2.14.1-simulation.2",
3
+ "version": "2.14.1-simulation.3",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -108,8 +108,12 @@
108
108
  v-model="fileBrowserVisible"
109
109
  title="File browser"
110
110
  width="700"
111
- top="16px">
112
- <FileBrowser ref="fileBrowserRef" />
111
+ top="16px"
112
+ >
113
+ <FileBrowser
114
+ ref="fileBrowserRef"
115
+ @fileActionTriggered="fileActionTriggered"
116
+ />
113
117
  </el-dialog>
114
118
  </el-card>
115
119
 
@@ -237,10 +241,14 @@ export default {
237
241
  },
238
242
  },
239
243
  methods: {
244
+ fileActionTriggered: function(action) {
245
+ this.fileBrowserVisible = false
246
+ EventBus.emit('PopoverActionClick', action)
247
+ EventBus.emit('contextUpdate', action) // Pass to mapintegratedvuer
248
+ },
240
249
  fileInfoReady: function(payload) {
241
250
  if (this.fileSearch.onGoing) {
242
251
  if (payload.id === this.fileSearch.datasetID) {
243
- console.log(payload.id)
244
252
  payload.instance.openFileBrowser()
245
253
  }
246
254
  }
@@ -109,8 +109,7 @@ export default {
109
109
  this.search = searchTerm
110
110
  },
111
111
  handleView: function(row) {
112
- EventBus.emit('PopoverActionClick', row.action)
113
- EventBus.emit('contextUpdate', row.action) // Pass to mapintegratedvuer
112
+ this.$emit("fileActionTriggered", row.action)
114
113
  },
115
114
  downloadThumbnail: async function(url, entry) {
116
115
  const response = await fetch(url)