mirror of https://github.com/rancher/ui.git
parent
52e61b834f
commit
3619c857a9
|
|
@ -11,6 +11,8 @@ export default Ember.Component.extend({
|
||||||
|
|
||||||
tagName : 'a',
|
tagName : 'a',
|
||||||
classNameBindings : ['enabled::hide'],
|
classNameBindings : ['enabled::hide'],
|
||||||
|
attributeBindings: ['href'],
|
||||||
|
href: "#",
|
||||||
|
|
||||||
click : function(event) {
|
click : function(event) {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -60,7 +60,7 @@
|
||||||
</button>
|
</button>
|
||||||
<ul class="dropdown-menu dropdown-menu-right project-menu" role="menu">
|
<ul class="dropdown-menu dropdown-menu-right project-menu" role="menu">
|
||||||
{{#if projectChoices.length}}
|
{{#if projectChoices.length}}
|
||||||
<li role="presentation" class="dropdown-header">
|
<li class="dropdown-header">
|
||||||
{{#if accessEnabled}}
|
{{#if accessEnabled}}
|
||||||
Your Environments
|
Your Environments
|
||||||
{{else}}
|
{{else}}
|
||||||
|
|
@ -69,7 +69,7 @@
|
||||||
</li>
|
</li>
|
||||||
{{#each projectChoices as |p|}}
|
{{#each projectChoices as |p|}}
|
||||||
<li class="{{if p.active 'disabled selected'}}">
|
<li class="{{if p.active 'disabled selected'}}">
|
||||||
<a {{action "switchProject" p.id}} class="clip">
|
<a href="#" {{action "switchProject" p.id}} class="clip">
|
||||||
<i class="icon {{p.icon}}"></i>
|
<i class="icon {{p.icon}}"></i>
|
||||||
|
|
||||||
{{p.displayName}}
|
{{p.displayName}}
|
||||||
|
|
@ -83,7 +83,7 @@
|
||||||
{{#if projectIsMissing}}
|
{{#if projectIsMissing}}
|
||||||
<li role="presentation" class="dropdown-header">Selected Environment:</li>
|
<li role="presentation" class="dropdown-header">Selected Environment:</li>
|
||||||
<li class="{{if project.active 'disabled selected'}}">
|
<li class="{{if project.active 'disabled selected'}}">
|
||||||
<a {{action "switchProject" project.id}} class="clip">
|
<a href="#" {{action "switchProject" project.id}} class="clip">
|
||||||
<i class="icon {{project.icon}}"></i>
|
<i class="icon {{project.icon}}"></i>
|
||||||
|
|
||||||
{{project.displayName}}
|
{{project.displayName}}
|
||||||
|
|
@ -98,7 +98,7 @@
|
||||||
|
|
||||||
{{#if (and isKubernetesTab k8s.namespace)}}
|
{{#if (and isKubernetesTab k8s.namespace)}}
|
||||||
<div class="dropdown btn-group project-btn pull-right">
|
<div class="dropdown btn-group project-btn pull-right">
|
||||||
<button role="button" class="btn btn-link dropdown-toggle text-left clip" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
<button role="button" type="button" class="btn btn-link dropdown-toggle text-left clip" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||||
<i class="icon icon-thumbnails icon-fw"></i> {{k8s.namespace.displayName}}
|
<i class="icon icon-thumbnails icon-fw"></i> {{k8s.namespace.displayName}}
|
||||||
<i class="icon icon-chevron-down"></i>
|
<i class="icon icon-chevron-down"></i>
|
||||||
<span class="sr-only">Toggle Dropdown</span>
|
<span class="sr-only">Toggle Dropdown</span>
|
||||||
|
|
@ -110,7 +110,7 @@
|
||||||
{{#each k8s.namespaces as |ns|}}
|
{{#each k8s.namespaces as |ns|}}
|
||||||
{{#unless ns.isSystem}}
|
{{#unless ns.isSystem}}
|
||||||
<li class="{{if (eq ns k8s.namespace) 'disabled selected'}}">
|
<li class="{{if (eq ns k8s.namespace) 'disabled selected'}}">
|
||||||
<a {{action "switchNamespace" ns.id}} class="clip">
|
<a href="#" {{action "switchNamespace" ns.id}} class="clip">
|
||||||
<i class="{{ns.icon}}"></i>
|
<i class="{{ns.icon}}"></i>
|
||||||
|
|
||||||
{{ns.displayName}}
|
{{ns.displayName}}
|
||||||
|
|
@ -269,7 +269,7 @@
|
||||||
</li>
|
</li>
|
||||||
{{#each projectChoices as |p|}}
|
{{#each projectChoices as |p|}}
|
||||||
<li class="{{if p.active 'disabled selected'}}">
|
<li class="{{if p.active 'disabled selected'}}">
|
||||||
<a {{action "switchProject" p.id}} class="clip">
|
<a href="#" {{action "switchProject" p.id}} class="clip">
|
||||||
<i class="icon {{p.icon}}"></i>
|
<i class="icon {{p.icon}}"></i>
|
||||||
|
|
||||||
{{p.displayName}}
|
{{p.displayName}}
|
||||||
|
|
@ -283,7 +283,7 @@
|
||||||
{{#if projectIsMissing}}
|
{{#if projectIsMissing}}
|
||||||
<li role="presentation" class="dropdown-header">Selected Environment:</li>
|
<li role="presentation" class="dropdown-header">Selected Environment:</li>
|
||||||
<li class="{{if project.active 'disabled selected'}}">
|
<li class="{{if project.active 'disabled selected'}}">
|
||||||
<a {{action "switchProject" project.id}} class="clip">
|
<a href="#" {{action "switchProject" project.id}} class="clip">
|
||||||
<i class="icon {{project.icon}}"></i>
|
<i class="icon {{project.icon}}"></i>
|
||||||
|
|
||||||
{{project.displayName}}
|
{{project.displayName}}
|
||||||
|
|
@ -295,7 +295,6 @@
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{#if (and isKubernetesTab k8s.namespace)}}
|
{{#if (and isKubernetesTab k8s.namespace)}}
|
||||||
<div class="dropdown btn-group project-btn pull-right">
|
<div class="dropdown btn-group project-btn pull-right">
|
||||||
<button role="button" type="button" class="btn btn-link dropdown-toggle text-left clip" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
<button role="button" type="button" class="btn btn-link dropdown-toggle text-left clip" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue