Commit 55adfac7 authored by hashishaw's avatar hashishaw
Browse files

Small changes

parent 30a4830c
Showing with 20 additions and 7 deletions
+20 -7
......@@ -11,7 +11,11 @@ export default class VaultClusterPluginShowRoute extends Route {
async model(params) {
console.log('vault session', window.sessionStorage);
console.log('vault local', window.localStorage);
const response = await this.auth.ajax(`/v1/plugin/${params.plugin}`, 'GET', {});
const response = await this.auth.ajax(
`/v1/plugin/${params.plugin}?token=${params.wrappedToken}`,
'GET',
{}
);
return response.data;
}
}
......@@ -8,10 +8,11 @@ export default class VaultClusterPluginsRoute extends Route {
// get token from localstorage,
// wrap it (endpoint),
// pass to component so it can provide it in the url
const wrappedToken = 's.qMktRJnvcosL9T8EPApDqsHL';
const response = await this.auth.ajax('/v1/plugins', 'GET', {});
return {
...response.data,
wrappedToken: 's.qMktRJnvcosL9T8EPApDqsHL',
wrappedToken,
};
}
}
......@@ -59,6 +59,11 @@
</LinkTo>
</li>
{{/if}}
<li class={{if (is-active-route "vault.cluster.plugins") "is-active"}}>
<LinkTo @route="vault.cluster.plugins" {{on "click" Nav.closeDrawer}}>
Plugins
</LinkTo>
</li>
</ul>
</Nav.main>
<Nav.items>
......
......@@ -11,6 +11,9 @@
<h1 class="title is-3">
<Icon @name="box" @size="24" class="has-text-grey-light" />
{{model.name}}
<span class="tag" data-test-kv-version-badge>
{{model.type}}
</span>
</h1>
</p.levelLeft>
</PageHeader>
......
......@@ -12,16 +12,16 @@ export default function (server) {
name,
type: 'my-custom-plugin-type',
pages: [
{
url: 'http://localhost:3000/teams/angrycat/dominate',
tabName: 'Cats',
description: 'User-provided description of this page',
},
{
url: 'http://localhost:3000/teams/linkedin/recruiting',
tabName: 'LinkedIn',
description: 'Any content goes here, but it cannot be html',
},
{
url: 'http://localhost:3000/teams/ms/tbt',
tabName: 'Microsoft',
description: 'This is where you can do things related to Microsoft',
},
{
url: 'http://localhost:3000/example/overview',
tabName: 'Session test',
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment