keep flashy map icon in feed
This commit is contained in:
@@ -560,8 +560,9 @@ export default {
|
||||
+ window.pageYOffset
|
||||
- parseFloat(getComputedStyle(this.$refs.feedSimpleBar.$el).paddingTop)
|
||||
);
|
||||
bFound = true;
|
||||
aoRefs[0].executeMainAction();
|
||||
this.spot.flushHash(['post', 'message']);
|
||||
bFound = true;
|
||||
}
|
||||
|
||||
return bFound;
|
||||
|
||||
@@ -23,6 +23,11 @@ export default {
|
||||
this.$refs[this.type=='marker'?'takenon':'postedon'].outerHTML +
|
||||
this.$refs[this.type=='marker'?'postedon':'takenon'].outerHTML
|
||||
;
|
||||
},
|
||||
methods: {
|
||||
openMedia() {
|
||||
this.$refs.link.click();
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -36,6 +41,7 @@ export default {
|
||||
:data-id="options.id_media"
|
||||
:data-title="title"
|
||||
:data-orientation="options.rotate"
|
||||
ref="link"
|
||||
>
|
||||
<img
|
||||
:src="options.thumb_path"
|
||||
|
||||
@@ -109,6 +109,16 @@
|
||||
this.sending = false;
|
||||
});
|
||||
}
|
||||
},
|
||||
executeMainAction() {
|
||||
switch(this.options.type) {
|
||||
case 'message':
|
||||
this.panMapToMessage();
|
||||
break;
|
||||
case 'media':
|
||||
this.$refs.medialink.openMedia();
|
||||
break;
|
||||
}
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
@@ -156,7 +166,7 @@
|
||||
</a>
|
||||
</div>
|
||||
<div v-else-if="options.type == 'media'" class="body-box">
|
||||
<projectMediaLink :options="options" :type="'post'" />
|
||||
<projectMediaLink :options="options" :type="'post'" ref="medialink" />
|
||||
</div>
|
||||
<div v-else-if="options.type == 'post'">
|
||||
<p class="message">{{ options.content }}</p>
|
||||
|
||||
@@ -74,7 +74,7 @@ export default {
|
||||
<template>
|
||||
<div id="upload">
|
||||
<a name="back" class="button" href="#project"><SpotIcon :icon="'back'" :text="spot.lang('nav_back')" /></a>
|
||||
<h1>{{ spot.lang('upload_title') }}</h1>
|
||||
<h1>{{ spot.lang('upload_media_title') }}</h1>
|
||||
<h2>{{ this.project.name }}</h2>
|
||||
<div class="section" v-if="project.editable">
|
||||
<input id="fileupload" type="file" name="files[]" :data-url="this.spot.getActionLink('upload')" multiple />
|
||||
@@ -90,6 +90,7 @@ export default {
|
||||
<SpotButton :classes="'save'" :icon="'save'" :text="spot.lang('save')" @click="addComment(file)" />
|
||||
</div>
|
||||
</div>
|
||||
<h1>{{ spot.lang('upload_pos_title') }}</h1>
|
||||
<div class="section location">
|
||||
<SpotButton :icon="'message'" :text="spot.lang('new_position')" @click="addPosition()" />
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user