1
0
Эх сурвалжийг харах

Add youtube search result to queue button change

Owen Diffey 3 жил өмнө
parent
commit
fa5e1b7f7d

+ 12 - 1
frontend/src/components/SearchQueryItem.vue

@@ -29,7 +29,8 @@
 					<div class="youtube-icon"></div>
 				</a>
 				<slot name="actions" />
-			</div>		</div>
+			</div>
+		</div>
 	</div>
 </template>
 
@@ -62,6 +63,16 @@ export default {
 	transform: translateX(20px);
 	opacity: 0;
 }
+
+.search-query-item {
+	.add-to-queue-icon {
+		color: var(--primary-color);
+	}
+
+	.added-to-queue-icon {
+		color: var(--green);
+	}
+}
 </style>
 
 <style lang="scss" scoped>

+ 10 - 14
frontend/src/components/modals/ManageStation/Tabs/Search.vue

@@ -77,29 +77,25 @@
 				>
 					<template #actions>
 						<transition name="search-query-actions" mode="out-in">
-							<a
-								class="button is-success"
+							<i
 								v-if="result.isAddedToQueue"
+								class="material-icons added-to-queue-icon"
+								content="Song Added to Queue"
+								v-tippy
 								key="added-to-queue"
+								>library_add_check</i
 							>
-								<i class="material-icons icon-with-button"
-									>done</i
-								>
-								Added to queue
-							</a>
-							<a
-								class="button is-dark"
+							<i
 								v-else
+								class="material-icons add-to-queue-icon"
 								@click.prevent="
 									addSongToQueue(result.id, index)
 								"
+								content="Add Song to Queue"
+								v-tippy
 								key="add-to-queue"
+								>queue</i
 							>
-								<i class="material-icons icon-with-button"
-									>add</i
-								>
-								Add to queue
-							</a>
 						</transition>
 					</template>
 				</search-query-item>