double click play stream
This commit is contained in:
13
web/index.js
13
web/index.js
@@ -281,7 +281,7 @@ const component_file_dialog = {
|
|||||||
this.$emit('close_dialog')
|
this.$emit('close_dialog')
|
||||||
},
|
},
|
||||||
emit_stream_audio() {
|
emit_stream_audio() {
|
||||||
this.file.play_back_type = 'stream',
|
this.file.play_back_type = 'stream'
|
||||||
this.$emit("play_audio", this.file)
|
this.$emit("play_audio", this.file)
|
||||||
this.emit_close_dialog()
|
this.emit_close_dialog()
|
||||||
},
|
},
|
||||||
@@ -331,7 +331,7 @@ const component_file = {
|
|||||||
props: ['file'],
|
props: ['file'],
|
||||||
emits: ['play_audio'],
|
emits: ['play_audio'],
|
||||||
template: `
|
template: `
|
||||||
<td class="clickable" @click="dialog">{{ file.filename }}</td>
|
<td class="clickable" @click="click_filename">{{ file.filename }}</td>
|
||||||
<td class="clickable" @click="show_folder">{{ file.foldername }}</td>
|
<td class="clickable" @click="show_folder">{{ file.foldername }}</td>
|
||||||
<td>{{ computed_readable_size }}</td>
|
<td>{{ computed_readable_size }}</td>
|
||||||
<td>
|
<td>
|
||||||
@@ -352,6 +352,15 @@ const component_file = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
click_filename() {
|
||||||
|
if (this.show_dialog) {
|
||||||
|
this.file.play_back_type = 'stream'
|
||||||
|
this.$emit('play_audio', this.file)
|
||||||
|
this.show_dialog = false
|
||||||
|
} else {
|
||||||
|
this.show_dialog = true
|
||||||
|
}
|
||||||
|
},
|
||||||
show_folder() {
|
show_folder() {
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
path: '/search_folders',
|
path: '/search_folders',
|
||||||
|
|||||||
Reference in New Issue
Block a user