From a5a771b27af324c992b45e905f516ceb2fb3a9ec Mon Sep 17 00:00:00 2001 From: heimoshuiyu Date: Mon, 24 May 2021 02:29:01 +0800 Subject: [PATCH] player folder clickable --- web/index.js | 11 ++++++++++- web/style.css | 3 +++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/web/index.js b/web/index.js index 9c81ff3..3039085 100644 --- a/web/index.js +++ b/web/index.js @@ -398,7 +398,7 @@ const component_audio_player = { template: `
-{{ file.filename }} / {{ file.foldername }}
+{{ file.filename }} /
{{ file.foldername }}


`, 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) { this.ffmpeg_config = ffmpeg_config }, diff --git a/web/style.css b/web/style.css index 206ddf8..7f4390b 100644 --- a/web/style.css +++ b/web/style.css @@ -44,3 +44,6 @@ a.router-link-active { td.clickable { cursor: pointer; } +div.clickable { + cursor: pointer; +}