mirror of
https://github.com/portainer/portainer.git
synced 2025-08-02 12:25:22 +02:00
feat(sidebar): add indicator for an openable submenu (#5398) [EE-538]
This commit is contained in:
parent
d2d885359f
commit
bbbc61dca9
28 changed files with 794 additions and 667 deletions
|
@ -1,8 +0,0 @@
|
|||
import angular from 'angular';
|
||||
|
||||
angular.module('portainer.azure').component('azureSidebarContent', {
|
||||
templateUrl: './azureSidebarContent.html',
|
||||
bindings: {
|
||||
endpointId: '<',
|
||||
},
|
||||
});
|
|
@ -1,6 +0,0 @@
|
|||
<li class="sidebar-list">
|
||||
<a ui-sref="azure.dashboard({endpointId: $ctrl.endpointId})" ui-sref-active="active">Dashboard <span class="menu-icon fa fa-tachometer-alt fa-fw"></span></a>
|
||||
</li>
|
||||
<li class="sidebar-list">
|
||||
<a ui-sref="azure.containerinstances({endpointId: $ctrl.endpointId})" ui-sref-active="active">Container instances <span class="menu-icon fa fa-cubes fa-fw"></span></a>
|
||||
</li>
|
7
app/azure/components/azure-sidebar/azure-sidebar.html
Normal file
7
app/azure/components/azure-sidebar/azure-sidebar.html
Normal file
|
@ -0,0 +1,7 @@
|
|||
<sidebar-menu-item path="azure.dashboard" path-params="{ endpointId: $ctrl.endpointId }" icon-class="fa-tachometer-alt fa-fw" class-name="sidebar-list">
|
||||
Dashboard
|
||||
</sidebar-menu-item>
|
||||
|
||||
<sidebar-menu-item path="azure.containerinstances" path-params="{ endpointId: $ctrl.endpointId }" icon-class="fa-cubes fa-fw" class-name="sidebar-list">
|
||||
Container instances
|
||||
</sidebar-menu-item>
|
8
app/azure/components/azure-sidebar/index.js
Normal file
8
app/azure/components/azure-sidebar/index.js
Normal file
|
@ -0,0 +1,8 @@
|
|||
import angular from 'angular';
|
||||
|
||||
angular.module('portainer.azure').component('azureSidebar', {
|
||||
templateUrl: './azure-sidebar.html',
|
||||
bindings: {
|
||||
endpointId: '<',
|
||||
},
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue