diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 4345923d..7ebb415b 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -490,6 +490,9 @@ "loggingStop": { "message": "Stop Logging" }, + "loggingBack": { + "message": "Leave Logging / Disconnect" + }, "loggingErrorLogFile": { "message": "Please select log file" }, diff --git a/tabs/logging.css b/tabs/logging.css index d393f8d6..a34c4f65 100644 --- a/tabs/logging.css +++ b/tabs/logging.css @@ -49,7 +49,10 @@ line-height: 20px; } .tab-logging .buttons { - margin-top: 10px; + width: calc(100% - 20px); + + position: absolute; + bottom: 10px; } .tab-logging .buttons a { display: block; @@ -71,3 +74,9 @@ .tab-logging .buttons a:hover { background-color: #dedcdc; } + .tab-logging .buttons .back { + display: none; + + float: right; + margin: 0; + } \ No newline at end of file diff --git a/tabs/logging.html b/tabs/logging.html index 5b6c715b..4f2b9ac3 100644 --- a/tabs/logging.html +++ b/tabs/logging.html @@ -34,5 +34,6 @@
+
\ No newline at end of file diff --git a/tabs/logging.js b/tabs/logging.js index cc261e0a..5da35654 100644 --- a/tabs/logging.js +++ b/tabs/logging.js @@ -112,6 +112,22 @@ function tab_initialize_logging() { } }); + if (MSP_pass_through) { + $('a.back').show(); + + $('a.back').click(function() { + if (GUI.connected_to) { + $('a.connect').click(); + } else { + GUI.tab_switch_cleanup(function() { + MSP_pass_through = false; + $('#tabs > ul li').removeClass('active'); + tab_initialize_default(); + }); + } + }); + } + chrome.storage.local.get('logging_file_entry', function(result) { if (result.logging_file_entry) { chrome.fileSystem.restoreEntry(result.logging_file_entry, function(entry) {