Browse Source

Added shift+click to bypass confirmation

Owen Diffey 3 years ago
parent
commit
2466f8b2bb

+ 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
 												>