Skip to content

Commit

Permalink
Merge remote-tracking branch 'femi/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
mksahakyan committed Nov 19, 2021
2 parents e21a55f + ed31608 commit cee4d4b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
"web-component-tester": "6.0.0",
"webcomponentsjs": "webcomponents/webcomponentsjs#1.0.5"
}
}
}
23 changes: 11 additions & 12 deletions qos-backend-information.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
<link rel="import" href="../polymer/polymer-element.html">
<script src="../util-precondition/precondition.js"></script>
<script src="../util-majax-requests/majax-requests.js"></script>
<link rel="import" href="./../util-precondition/preconditionjs-import.html">
<link rel="import" href="./../util-majax-requests/majax-requests.html">

<dom-module id="qos-backend-information">
<script>
'use strict';
/**
* `qos-backend-information`
*
*
*
* @customElement
* @polymer
Expand Down Expand Up @@ -48,6 +47,7 @@

ready()
{
super.ready();
this._ensureAttribute('hidden', true);
}

Expand All @@ -59,14 +59,14 @@
'Cannot set property \'urls\' to empty array.');
let requestQosInfo = new MultipleAjaxRequests(urls, this, headers);
this.addEventListener('allResolved', e => {
this.response = e.detail;
this.response = e.detail.response;
/**
* @event {qos-backend-response}
*/
this.dispatchEvent(new CustomEvent('qos-backend-response', {
bubbles: true,
composed: true,
detail: this.response
detail: {response: this.response}
}));
});
requestQosInfo.send();
Expand Down Expand Up @@ -112,13 +112,12 @@
_computeHeaders(auth)
{
return {
"Content-type":"application/json",
"Accept": "application/json",
"Suppress-WWW-Authenticate": "Suppress",
"Content-type":"application/json",
"Accept": "application/json",
"Suppress-WWW-Authenticate": "Suppress",
"Authorization": `${auth}`
}
}
}
customElements.define(QosBackendInformation.is, QosBackendInformation);
</script>
</dom-module>
window.customElements.define(QosBackendInformation.is, QosBackendInformation);
</script>

0 comments on commit cee4d4b

Please sign in to comment.