6e8a8a2bc0
* Remove empty init * Actually make the disco chain endpoint send the nspace, note: The backend doesn't support this as yet. * Tweak the font size of flash-messages ever so slightly * Make sure the nspace menu is kept up to date when creating a new one * Move comment to the correct place * Only refresh the namespace menu if you specifically created a nspace * Change FIXMEs to TODOs as we are happy for these to wait until later
19 lines
428 B
JavaScript
19 lines
428 B
JavaScript
import Adapter from './application';
|
|
|
|
// TODO: Update to use this.formatDatacenter()
|
|
export default Adapter.extend({
|
|
requestForQueryRecord: function(request, { dc, ns, index, id }) {
|
|
if (typeof id === 'undefined') {
|
|
throw new Error('You must specify an id');
|
|
}
|
|
return request`
|
|
GET /v1/discovery-chain/${id}?${{ dc }}
|
|
|
|
${{
|
|
...this.formatNspace(ns),
|
|
index,
|
|
}}
|
|
`;
|
|
},
|
|
});
|