Bug 1494337 - Do not display the 'triggers refresh' note if there's no option needing it r=ochameau

Depends on D6923

Differential Revision: https://phabricator.services.mozilla.com/D6920

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Julien Wajsberg 2018-09-27 14:33:41 +00:00
parent f74fc26e96
commit 9ce2cbff3e
2 changed files with 5 additions and 0 deletions

View File

@ -467,6 +467,10 @@ OptionsPanel.prototype = {
} else {
// Hide the checkbox and label
this.disableJSNode.parentNode.style.display = "none";
const triggersPageRefreshLabel =
this.panelDoc.getElementById("triggers-page-refresh-label");
triggersPageRefreshLabel.style.display = "none";
}
},

View File

@ -189,6 +189,7 @@
<span>&options.enableRemote.label3;</span>
</label>
<span class="options-citation-label theme-comment"
id="triggers-page-refresh-label"
>&options.context.triggersPageRefresh;</span>
</fieldset>
</div>