Passes selected items query only inside iframe.

This commit is contained in:
Mateus Machado Luna 2019-08-19 11:04:35 -03:00
parent 7ac60dab0e
commit b50de7ac21
2 changed files with 6 additions and 3 deletions

View File

@ -948,7 +948,9 @@ export default {
return this.getSelectedItems();
},
selectedItems () {
this.$eventBusSearch.setSelectedItemsForIframe(this.getSelectedItems());
if (this.$route.query.iframemode)
this.$eventBusSearch.setSelectedItemsForIframe(this.getSelectedItems());
return this.getSelectedItems();
},
isSelectingItems () {
@ -1213,7 +1215,7 @@ export default {
if ($event.ctrlKey || $event.shiftKey) {
this.setSelectedItemChecked(item.id);
} else {
if (!this.$route.query.iframemode && this.$route.query.iframemode) {
if (this.$route.query.iframemode && !this.$route.query.readmode) {
this.setSelectedItemChecked(item.id)
} else if (!this.$route.query.iframemode && !this.$route.query.readmode) {
if(this.isOnTrash){

View File

@ -204,7 +204,8 @@
content: $i18n.get('label_open_externally'),
autoHide: false,
placement: 'bottom'
}"
}"
target="_blank"
:href="getExposerFullURL(pagedLink, exposerMapper)">
<span class="icon">
<i class="tainacan-icon tainacan-icon-18px tainacan-icon-openurl"/>