소스 검색

Added shift+click to bypass confirmation

Owen Diffey 3 년 전
부모
커밋
2466f8b2bb
2개의 변경된 파일3개의 추가작업 그리고 6개의 파일을 삭제
  1. 3 1
      frontend/src/components/Confirm.vue
  2. 0 5
      frontend/src/components/modals/EditPlaylist.vue

+ 3 - 1
frontend/src/components/Confirm.vue

@@ -7,7 +7,9 @@
 		trigger="click"
 	>
 		<template #trigger>
-			<slot />
+			<div @click.shift="$emit('confirm')">
+				<slot />
+			</div>
 		</template>
 		<a @click.prevent="$emit('confirm')"> Confirm </a>
 	</tippy>

+ 0 - 5
frontend/src/components/modals/EditPlaylist.vue

@@ -281,11 +281,6 @@
 												<i
 													class="material-icons delete-icon"
 													content="Remove Song from Playlist"
-													@click.shift="
-														removeSongFromPlaylist(
-															song.songId
-														)
-													"
 													v-tippy
 													>delete_forever</i
 												>