From 714b2e851734447a6701af88fc56091a3d75d7c1 Mon Sep 17 00:00:00 2001 From: Alex Vitkov Date: Sat, 13 Feb 2021 14:49:57 +0200 Subject: trash icons --- loggedin.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'loggedin.js') diff --git a/loggedin.js b/loggedin.js index 0f51c1b..eba58ba 100644 --- a/loggedin.js +++ b/loggedin.js @@ -393,7 +393,10 @@ function add_file_visuals(fileview) { var filename = document.createElement('div'); if (fileview.is_directory) { - img.src="/mimeicons/directory.png"; + if (fileview.filename == "trash") + img.src="/mimeicons/user-trash.png"; + else + img.src="/mimeicons/directory.png"; } else { img.src=`/mimeicons/${fileview.mimetype.replace("/", "-")}.png`; } -- cgit v1.2.3