Update timeline position on transaction entry timestamp click
Test: Manual Change-Id: I66a3f8b5a323c19f57881ba50e5222c793c804ff
This commit is contained in:
@@ -17,7 +17,7 @@
|
|||||||
@click="onClick(source)"
|
@click="onClick(source)"
|
||||||
>
|
>
|
||||||
<div class="time-column">
|
<div class="time-column">
|
||||||
<a @click="setTimelineTime(source.timestamp)" class="time-link">
|
<a @click="e => setTimelineTime(e, source.timestamp)" class="time-link">
|
||||||
{{source.time}}
|
{{source.time}}
|
||||||
</a>
|
</a>
|
||||||
<div
|
<div
|
||||||
@@ -50,7 +50,7 @@
|
|||||||
</span>
|
</span>
|
||||||
<span v-if="source.origin">
|
<span v-if="source.origin">
|
||||||
PID: <span class="light">{{ source.origin.pid }}</span><br/>
|
PID: <span class="light">{{ source.origin.pid }}</span><br/>
|
||||||
TID: <span class="light">{{ source.origin.uid }}</span><br/>
|
UID: <span class="light">{{ source.origin.uid }}</span><br/>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -114,7 +114,9 @@ export default {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
setTimelineTime(timestamp) {
|
setTimelineTime(e, timestamp) {
|
||||||
|
e.preventDefault();
|
||||||
|
e.stopPropagation();
|
||||||
this.$store.dispatch('updateTimelineTime', timestamp);
|
this.$store.dispatch('updateTimelineTime', timestamp);
|
||||||
},
|
},
|
||||||
transactionTypeOf(transaction) {
|
transactionTypeOf(transaction) {
|
||||||
|
|||||||
Reference in New Issue
Block a user