Commit 8e3a39d4 authored by Matěj Lang's avatar Matěj Lang
Browse files

Select active stick when clicking in ImageDialog on the stick.

parent 141ff90f
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
<template>
  <g :id="'stickPreview_' + this.stickID">
  <g :id="'stickPreview_' + this.stickID" @click="setActiveStick">
    <defs>
      <linearGradient id="selectTop" x1="0%" y1="0%" x2="0%" y2="100%">
        <stop offset="0%" style="stop-color:#000000;stop-opacity:1" />
@@ -359,6 +359,13 @@ export default {
        })
      }
    },
    setActiveStick() {
      this.$store.dispatch('setActivePoint', {
        stickID: this.stickID,
        cameraID: this.cameraID,
        imageName: this.imageName
      })
    },
    buildStickBackupData() {
      this.backup.top.x = this.point1.x
      this.backup.top.y = this.point1.y