From f7ea7f4f9a33738384a3e63fcd76f65e8a058820 Mon Sep 17 00:00:00 2001 From: HThuren <99370924+HThuren@users.noreply.github.com> Date: Tue, 28 Mar 2023 00:13:27 +0200 Subject: [PATCH] Show logname on logging tab (#3394) Show logname --- locales/en/messages.json | 3 +++ src/js/tabs/logging.js | 5 +++++ src/tabs/logging.html | 2 ++ 3 files changed, 10 insertions(+) diff --git a/locales/en/messages.json b/locales/en/messages.json index a0e1e3ee..6680cd1e 100644 --- a/locales/en/messages.json +++ b/locales/en/messages.json @@ -2903,6 +2903,9 @@ "loggingLogSize": { "message": "Log Size:" }, + "loggingLogName": { + "message": "Log Name:" + }, "loggingButtonLogFile": { "message": "Select Log File" }, diff --git a/src/js/tabs/logging.js b/src/js/tabs/logging.js index dedc1710..9cb56fcd 100644 --- a/src/js/tabs/logging.js +++ b/src/js/tabs/logging.js @@ -308,6 +308,11 @@ logging.initialize = function (callback) { // update log size in UI on fileWriter creation $('.size').text(bytesToSize(fileWriter.length)); + // update log name in UI + chrome.fileSystem.getDisplayPath(fileEntry, function (path) { + $('.name').text(path); + }); + }, function (e) { // File is not readable or does not exist! console.error(e); diff --git a/src/tabs/logging.html b/src/tabs/logging.html index cc62c132..dd234883 100755 --- a/src/tabs/logging.html +++ b/src/tabs/logging.html @@ -62,6 +62,8 @@
0
0 Bytes
+
+