Added download button functions on artist and album/playlist tab

This commit is contained in:
RemixDev 2020-04-18 12:12:13 +02:00
parent af629e4fcb
commit 20ae210fd0

View File

@ -367,7 +367,7 @@ <h1>Settings</h1>
<div id="artist_tab" class="main_tabcontent fixed_footer image_header"> <div id="artist_tab" class="main_tabcontent fixed_footer image_header">
<header class="inline-flex" v-bind:style="{ 'background-image': 'linear-gradient(to bottom, transparent 0%, var(--main-background) 100%), url(\''+image+'\')' }"> <header class="inline-flex" v-bind:style="{ 'background-image': 'linear-gradient(to bottom, transparent 0%, var(--main-background) 100%), url(\''+image+'\')' }">
<h1>{{ title }}</h1> <h1>{{ title }}</h1>
<div class="fab right"><i class="material-icons">get_app</i></div> <div role="button" aria-label="download" v-on:contextmenu="openQualityModal(event)" v-on:click="addToQueue(event)" v-bind:data-link="link" class="fab right"><i class="material-icons">get_app</i></div>
</header> </header>
<div class="tab"> <div class="tab">
@ -435,7 +435,7 @@ <h2><span v-if="metadata">{{ metadata }}</span><span v-if="release_date">{{ rele
</table> </table>
<span v-if="label" style="opacity: 0.40;margin-top: 8px;display: inline-block;font-size: 13px;">{{ label }}</span> <span v-if="label" style="opacity: 0.40;margin-top: 8px;display: inline-block;font-size: 13px;">{{ label }}</span>
<footer> <footer>
<button v-bind:data-link="link">Download {{ type }}</button> <button v-on:contextmenu="openQualityModal(event)" v-on:click="addToQueue(event)" v-bind:data-link="link">Download {{ type }}</button>
<button>Download selection<i class="material-icons right">file_download</i></button> <button>Download selection<i class="material-icons right">file_download</i></button>
<button onclick="backTab()">Back</button> <button onclick="backTab()">Back</button>
</footer> </footer>