Skip to content

Commit

Permalink
dont open image in color picking mode
Browse files Browse the repository at this point in the history
  • Loading branch information
srimanachanta committed Jul 22, 2023
1 parent 5764a6a commit c5bc637
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions photon-client/src/components/app/photon-camera-stream.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { computed } from "vue";
import { useCameraSettingsStore } from "@/stores/settings/CameraSettingsStore";
import { useStateStore } from "@/stores/StateStore";
import loadingImage from "@/assets/images/loading.svg";
import eyedropperCursor from "@/assets/images/eyedropper.svg";

Check warning on line 6 in photon-client/src/components/app/photon-camera-stream.vue

View workflow job for this annotation

GitHub Actions / photonclient-link

'eyedropperCursor' is defined but never used
import type { StyleValue } from "vue/types/jsx";
const props = defineProps<{
Expand All @@ -22,17 +23,17 @@ const src = computed<string>(() => {
const alt = computed<string>(() => `${props.streamType} Stream View`);
const style = computed<StyleValue>(() => {
if(src.value !== loadingImage) {
return {
cursor: "pointer"
};
if(useStateStore().colorPickingMode) {
return { cursor: "crosshair" };
} else if(src.value !== loadingImage) {
return { cursor: "pointer" };
}
return {};
});
const handleClick = () => {
if(src.value !== loadingImage) {
if(!useStateStore().colorPickingMode && src.value !== loadingImage) {
window.open(src.value);
}
};
Expand Down

0 comments on commit c5bc637

Please sign in to comment.