player folder clickable
This commit is contained in:
11
web/index.js
11
web/index.js
@@ -398,7 +398,7 @@ const component_audio_player = {
|
|||||||
template: `
|
template: `
|
||||||
<div>
|
<div>
|
||||||
<div v-if="computed_show">
|
<div v-if="computed_show">
|
||||||
<span>{{ file.filename }} / {{ file.foldername }}</span><br />
|
<span>{{ file.filename }} / <div class="clickable" @click="show_folder">{{ file.foldername }}</div></span><br />
|
||||||
<input type="checkbox" v-model="loop" />
|
<input type="checkbox" v-model="loop" />
|
||||||
<label>Loop</label><br />
|
<label>Loop</label><br />
|
||||||
<video v-if="computed_show" class="audio-player" :src="computed_playing_audio_file_url" controls autoplay :loop="loop">
|
<video v-if="computed_show" class="audio-player" :src="computed_playing_audio_file_url" controls autoplay :loop="loop">
|
||||||
@@ -408,6 +408,15 @@ const component_audio_player = {
|
|||||||
</div>
|
</div>
|
||||||
`,
|
`,
|
||||||
methods: {
|
methods: {
|
||||||
|
show_folder() {
|
||||||
|
this.$router.push({
|
||||||
|
path: '/search_folders',
|
||||||
|
query: {
|
||||||
|
folder_id: this.file.folder_id,
|
||||||
|
foldername: this.file.foldername,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
set_ffmpeg_config(ffmpeg_config) {
|
set_ffmpeg_config(ffmpeg_config) {
|
||||||
this.ffmpeg_config = ffmpeg_config
|
this.ffmpeg_config = ffmpeg_config
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -44,3 +44,6 @@ a.router-link-active {
|
|||||||
td.clickable {
|
td.clickable {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
div.clickable {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user