Thumbnail test
This commit is contained in:
parent
e270c71ab1
commit
5d0febf284
|
@ -14,6 +14,9 @@
|
|||
<v-btn class="mt-3 mb-3 mr-5 ml-5" :class="isWide ? '' : 'w-75'" variant="elevated" color="blue" @click="startDownload">Найти</v-btn>
|
||||
<v-btn v-if="downloadAvailable" :href="downloadLink" target="_blank" class="mt-3 mb-3 mr-5 ml-5" :class="isWide ? '' : 'w-75'" variant="elevated" color="blue">Скачать</v-btn>
|
||||
</div>
|
||||
<div>
|
||||
<v-img :src="this.downloadThumbnail"></v-img>
|
||||
</div>
|
||||
<div class="d-flex justify-end align-end flex-grow-1 w-100 ml-5 mr-5">
|
||||
<v-label>BETA</v-label>
|
||||
</div>
|
||||
|
@ -34,7 +37,7 @@ export default {
|
|||
fetching: ref(false),
|
||||
downloadAvailable: ref(false),
|
||||
downloadLink: '',
|
||||
downloadFileName: '',
|
||||
downloadThumbnail: '',
|
||||
hint: ref(''),
|
||||
error: ref(false),
|
||||
errorText: ref(''),
|
||||
|
@ -57,6 +60,7 @@ export default {
|
|||
} else if (responce.data.link){
|
||||
this.downloadAvailable = true;
|
||||
this.downloadLink = `/api/v1/file/download/${responce.data.link}`;
|
||||
this.downloadThumbnail = responce.data.thumbnail;
|
||||
}
|
||||
}).catch((error)=>{
|
||||
this.fetching = false;
|
||||
|
|
Loading…
Reference in New Issue