Skip to content
This repository has been archived by the owner on Nov 15, 2017. It is now read-only.

Commit

Permalink
this addresses empty matrix (#191)
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhill committed Feb 21, 2014
1 parent 72fe10a commit 870bf7d
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 0 deletions.
4 changes: 4 additions & 0 deletions _locales/de/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,10 @@
"message": "Click on a preset recipe to import its rules",
"description": "..."
},
"matrixNoNetTrafficPrompt" : {
"message": "No net traffic seen for this tab so far.",
"description": "..."
},


"statsPageTitle" : {
Expand Down
4 changes: 4 additions & 0 deletions _locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,10 @@
"message": "Click on a preset recipe to import its rules",
"description": "..."
},
"matrixNoNetTrafficPrompt" : {
"message": "No net traffic seen for this tab so far.",
"description": "..."
},


"statsPageTitle" : {
Expand Down
4 changes: 4 additions & 0 deletions _locales/fr/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,10 @@
"message": "Cliquez pour importer les règles d'une recette prédéfinie",
"description": "..."
},
"matrixNoNetTrafficPrompt" : {
"message": "Aucune activité réseau observée pour cet onglet jusqu'à présent.",
"description": "..."
},


"statsPageTitle" : {
Expand Down
4 changes: 4 additions & 0 deletions js/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -1356,6 +1356,10 @@ function bindToTabHandler(tabs) {
$('#buttonReload').remove();
$('#buttonRevertScope').remove();
$('#buttonRevertAll').remove();

// https://github.com/gorhill/httpswitchboard/issues/191
$('#noNetTrafficPrompt').text(chrome.i18n.getMessage('matrixNoNetTrafficPrompt'));
$('#noNetTrafficPrompt').css('display', '');
}

// Activate page scope if there is one
Expand Down
1 change: 1 addition & 0 deletions popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
<div id="matList" class="matrix">
<span id="no-traffic" style="color:gray;display:none">So far, no net traffic seen on this page. Maybe the page was loaded before HTTP Switchboard was activated?</span>
</div>
<div id="noNetTrafficPrompt" style="display:none;text-align:center;font-size:large"></div>
</div>

<script src="lib/jquery-2.min.js"></script>
Expand Down

0 comments on commit 870bf7d

Please sign in to comment.