mirror of https://github.com/rancher/ui.git
Project apikeys
This commit is contained in:
parent
462c639e35
commit
25f73bf81b
|
|
@ -1,7 +1,7 @@
|
|||
<section class="header has-tabs clearfix p-0">
|
||||
<ul class="tab-nav">
|
||||
<li>{{#link-to "authenticated.project.apikeys.account"}}{{t 'apiPage.account.header'}}{{/link-to}}</li>
|
||||
<li>{{#link-to "authenticated.project.apikeys.environment"}}{{t 'apiPage.header'}}{{/link-to}}</li>
|
||||
<li>{{#link-to "authenticated.project.apikeys.project"}}{{t 'apiPage.header'}}{{/link-to}}</li>
|
||||
</ul>
|
||||
|
||||
<div class="right-buttons">
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
<section class="header has-tabs clearfix p-0">
|
||||
<ul class="tab-nav">
|
||||
<li>{{#link-to "authenticated.project.apikeys.account"}}{{t 'apiPage.account.header'}}{{/link-to}}</li>
|
||||
<li>{{#link-to "authenticated.project.apikeys.environment"}}{{t 'apiPage.header'}}{{/link-to}}</li>
|
||||
<li>{{#link-to "authenticated.project.apikeys.project"}}{{t 'apiPage.header'}}{{/link-to}}</li>
|
||||
</ul>
|
||||
|
||||
<div class="right-buttons">
|
||||
<button class="btn btn-sm bg-primary" {{action "newApikey" "environment"}}>{{t 'apiPage.actionButton'}}</button>
|
||||
<button class="btn btn-sm bg-primary" {{action "newApikey" "project"}}>{{t 'apiPage.actionButton'}}</button>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
|
@ -20,8 +20,8 @@
|
|||
<p>
|
||||
<b>{{t 'apiPage.currentEndpoint'}}</b>
|
||||
<code>
|
||||
<a href="{{endpointService.api.auth.environment.current}}" target="_blank" rel="nofollow noreferer">{{endpointService.api.display.environment.current}}</a>
|
||||
{{copy-to-clipboard clipboardText=endpointService.api.auth.environment.current size="sm"}}
|
||||
<a href="{{endpointService.api.auth.project.current}}" target="_blank" rel="nofollow noreferer">{{endpointService.api.display.project.current}}</a>
|
||||
{{copy-to-clipboard clipboardText=endpointService.api.auth.project.current size="sm"}}
|
||||
</code>
|
||||
</p>
|
||||
</section>
|
||||
|
|
@ -43,8 +43,8 @@ Router.map(function() {
|
|||
this.route('new', {path: '/add'}, function() {
|
||||
this.route('rke');
|
||||
});
|
||||
this.route('new-project', {path: '/add-env'});
|
||||
this.route('project', {path: '/env/:project_id'});
|
||||
this.route('new-project', {path: '/add-project'});
|
||||
this.route('project', {path: '/p/:project_id'});
|
||||
|
||||
this.route('cluster', {path: '/:cluster_id'}, function() {
|
||||
this.route('edit');
|
||||
|
|
@ -65,11 +65,11 @@ Router.map(function() {
|
|||
});
|
||||
|
||||
// Per-Project
|
||||
this.route('project', {path: '/env/:project_id'}, function() {
|
||||
this.route('project', {path: '/p/:project_id'}, function() {
|
||||
this.route('index', {path: '/'});
|
||||
this.route('apikeys', {path: '/api/keys'}, function() {
|
||||
this.route('account', {path: '/account'});
|
||||
this.route('environment', {path: '/environment'});
|
||||
this.route('project', {path: '/project'});
|
||||
});
|
||||
this.route('waiting');
|
||||
|
||||
|
|
@ -151,7 +151,7 @@ Router.map(function() {
|
|||
|
||||
this.route('apikeys', {path: '/api/keys'}, function() {
|
||||
this.route('account', {path: '/account'});
|
||||
this.route('environment', {path: '/environment'});
|
||||
this.route('project', {path: '/project'});
|
||||
});
|
||||
|
||||
this.route('hooks', {path: '/api/hooks'}, function() {
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ export default Service.extend({
|
|||
current: authBase + current,
|
||||
legacy: authBase + legacy
|
||||
},
|
||||
environment: {
|
||||
project: {
|
||||
current: authBase + current + project,
|
||||
legacy: authBase + legacy + project
|
||||
}
|
||||
|
|
@ -74,7 +74,7 @@ export default Service.extend({
|
|||
current: base + current,
|
||||
legacy: base + legacy
|
||||
},
|
||||
environment: {
|
||||
project: {
|
||||
current: base + current + project,
|
||||
legacy: base + legacy + project
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue