Remove HTTPS warning
This commit is contained in:
parent
1601f4f269
commit
7201823c6b
|
@ -29,14 +29,6 @@ export default Ember.ArrayController.extend({
|
||||||
return item || NoQuery;
|
return item || NoQuery;
|
||||||
}.property('selectedQueryId'),
|
}.property('selectedQueryId'),
|
||||||
|
|
||||||
not_https: function() {
|
|
||||||
return !(
|
|
||||||
window.location.protocol === "https:" ||
|
|
||||||
window.location.hostname === "localhost" ||
|
|
||||||
window.location.hostname.endsWith(".local")
|
|
||||||
);
|
|
||||||
}.property(),
|
|
||||||
|
|
||||||
othersDirty: function() {
|
othersDirty: function() {
|
||||||
const selected = this.get('selectedItem');
|
const selected = this.get('selectedItem');
|
||||||
return !!this.get('content').find(function(q) {
|
return !!this.get('content').find(function(q) {
|
||||||
|
|
|
@ -1,12 +1,5 @@
|
||||||
<h2>Queries</h2>
|
<h2>Queries</h2>
|
||||||
|
|
||||||
{{#if not_https}}
|
|
||||||
<div class="https-warning">
|
|
||||||
{{fa-icon "warning"}}
|
|
||||||
{{i18n "explorer.https_warning"}}
|
|
||||||
</div>
|
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
<div class="query-list">
|
<div class="query-list">
|
||||||
{{combo-box valueAttribute="id" value=selectedQueryId nameProperty="listName" content=content castInteger="true" nameChanges="true"}}
|
{{combo-box valueAttribute="id" value=selectedQueryId nameProperty="listName" content=content castInteger="true" nameChanges="true"}}
|
||||||
{{d-button action="showCreate" icon="plus" class="no-text"}}
|
{{d-button action="showCreate" icon="plus" class="no-text"}}
|
||||||
|
|
|
@ -55,6 +55,5 @@ en:
|
||||||
explain_label: "Include query plan?"
|
explain_label: "Include query plan?"
|
||||||
save_params: "Set Defaults"
|
save_params: "Set Defaults"
|
||||||
reset_params: "Reset"
|
reset_params: "Reset"
|
||||||
https_warning: "This site is not protected by HTTPS. Please be careful to not retrieve sensitive information over insecure links."
|
|
||||||
no_queries: "There are no queries. Why not "
|
no_queries: "There are no queries. Why not "
|
||||||
no_queries_hook: "create one?"
|
no_queries_hook: "create one?"
|
||||||
|
|
Loading…
Reference in New Issue