Show logname on logging tab (#3394)

Show logname
master
HThuren 2023-03-28 00:13:27 +02:00 committed by GitHub
parent e7b057ef98
commit f7ea7f4f9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 0 deletions

View File

@ -2903,6 +2903,9 @@
"loggingLogSize": {
"message": "Log Size:"
},
"loggingLogName": {
"message": "Log Name:"
},
"loggingButtonLogFile": {
"message": "Select Log File"
},

View File

@ -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);

View File

@ -62,6 +62,8 @@
<dd class="samples">0</dd>
<dt i18n="loggingLogSize"></dt>
<dd class="size">0 Bytes</dd>
<dt i18n="loggingLogName"></dt>
<dd class="name"></dd>
</dl>
</div>
</div>