mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-09-17 14:21:14 +00:00
fix for config files
This commit is contained in:
@@ -46,39 +46,32 @@
|
|||||||
"features": {
|
"features": {
|
||||||
"header": [
|
"header": [
|
||||||
{
|
{
|
||||||
"id": "app.header.user",
|
"id": "app.user.menu",
|
||||||
"type": "custom",
|
"type": "custom",
|
||||||
"component": "app.user",
|
"component": "app.user.menu",
|
||||||
"order": 100
|
"order": 100
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"moreMenu": [
|
||||||
|
{
|
||||||
|
"id": "app.languagePicker",
|
||||||
|
"order": 100,
|
||||||
|
"type": "custom",
|
||||||
|
"component": "app.languagePicker"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "app.header.more",
|
"id": "logout.separator",
|
||||||
"type": "menu",
|
"type": "separator",
|
||||||
"order": 10000,
|
"order": 199
|
||||||
"icon": "more_vert",
|
},
|
||||||
"title": "APP.ACTIONS.MORE",
|
{
|
||||||
"children": [
|
"id": "app.logout",
|
||||||
{
|
"order": 200,
|
||||||
"id": "app.languagePicker",
|
"type": "custom",
|
||||||
"order": 100,
|
"component": "app.logout",
|
||||||
"type": "custom",
|
"rules": {
|
||||||
"component": "app.languagePicker"
|
"visible": "app.canShowLogout"
|
||||||
},
|
}
|
||||||
{
|
|
||||||
"id": "logout.separator",
|
|
||||||
"type": "separator",
|
|
||||||
"order": 199
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "app.logout",
|
|
||||||
"order": 200,
|
|
||||||
"type": "custom",
|
|
||||||
"component": "app.logout",
|
|
||||||
"rules": {
|
|
||||||
"visible": "app.canShowLogout"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"icons": [
|
"icons": [
|
||||||
|
@@ -46,39 +46,32 @@
|
|||||||
"features": {
|
"features": {
|
||||||
"header": [
|
"header": [
|
||||||
{
|
{
|
||||||
"id": "app.header.user",
|
"id": "app.user.menu",
|
||||||
"type": "custom",
|
"type": "custom",
|
||||||
"component": "app.user",
|
"component": "app.user.menu",
|
||||||
"order": 100
|
"order": 100
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"moreMenu": [
|
||||||
|
{
|
||||||
|
"id": "app.languagePicker",
|
||||||
|
"order": 100,
|
||||||
|
"type": "custom",
|
||||||
|
"component": "app.languagePicker"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "app.header.more",
|
"id": "logout.separator",
|
||||||
"type": "menu",
|
"type": "separator",
|
||||||
"order": 10000,
|
"order": 199
|
||||||
"icon": "more_vert",
|
},
|
||||||
"title": "APP.ACTIONS.MORE",
|
{
|
||||||
"children": [
|
"id": "app.logout",
|
||||||
{
|
"order": 200,
|
||||||
"id": "app.languagePicker",
|
"type": "custom",
|
||||||
"order": 100,
|
"component": "app.logout",
|
||||||
"type": "custom",
|
"rules": {
|
||||||
"component": "app.languagePicker"
|
"visible": "app.canShowLogout"
|
||||||
},
|
}
|
||||||
{
|
|
||||||
"id": "logout.separator",
|
|
||||||
"type": "separator",
|
|
||||||
"order": 199
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "app.logout",
|
|
||||||
"order": 200,
|
|
||||||
"type": "custom",
|
|
||||||
"component": "app.logout",
|
|
||||||
"rules": {
|
|
||||||
"visible": "app.canShowLogout"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"icons": [
|
"icons": [
|
||||||
|
@@ -46,39 +46,32 @@
|
|||||||
"features": {
|
"features": {
|
||||||
"header": [
|
"header": [
|
||||||
{
|
{
|
||||||
"id": "app.header.user",
|
"id": "app.user.menu",
|
||||||
"type": "custom",
|
"type": "custom",
|
||||||
"component": "app.user",
|
"component": "app.user.menu",
|
||||||
"order": 100
|
"order": 100
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"moreMenu": [
|
||||||
|
{
|
||||||
|
"id": "app.languagePicker",
|
||||||
|
"order": 100,
|
||||||
|
"type": "custom",
|
||||||
|
"component": "app.languagePicker"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "app.header.more",
|
"id": "logout.separator",
|
||||||
"type": "menu",
|
"type": "separator",
|
||||||
"order": 10000,
|
"order": 199
|
||||||
"icon": "more_vert",
|
},
|
||||||
"title": "APP.ACTIONS.MORE",
|
{
|
||||||
"children": [
|
"id": "app.logout",
|
||||||
{
|
"order": 200,
|
||||||
"id": "app.languagePicker",
|
"type": "custom",
|
||||||
"order": 100,
|
"component": "app.logout",
|
||||||
"type": "custom",
|
"rules": {
|
||||||
"component": "app.languagePicker"
|
"visible": "app.canShowLogout"
|
||||||
},
|
}
|
||||||
{
|
|
||||||
"id": "logout.separator",
|
|
||||||
"type": "separator",
|
|
||||||
"order": 199
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "app.logout",
|
|
||||||
"order": 200,
|
|
||||||
"type": "custom",
|
|
||||||
"component": "app.logout",
|
|
||||||
"rules": {
|
|
||||||
"visible": "app.canShowLogout"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"icons": [
|
"icons": [
|
||||||
|
@@ -46,39 +46,32 @@
|
|||||||
"features": {
|
"features": {
|
||||||
"header": [
|
"header": [
|
||||||
{
|
{
|
||||||
"id": "app.header.user",
|
"id": "app.user.menu",
|
||||||
"type": "custom",
|
"type": "custom",
|
||||||
"component": "app.user",
|
"component": "app.user.menu",
|
||||||
"order": 100
|
"order": 100
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"moreMenu": [
|
||||||
|
{
|
||||||
|
"id": "app.languagePicker",
|
||||||
|
"order": 100,
|
||||||
|
"type": "custom",
|
||||||
|
"component": "app.languagePicker"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "app.header.more",
|
"id": "logout.separator",
|
||||||
"type": "menu",
|
"type": "separator",
|
||||||
"order": 10000,
|
"order": 199
|
||||||
"icon": "more_vert",
|
},
|
||||||
"title": "APP.ACTIONS.MORE",
|
{
|
||||||
"children": [
|
"id": "app.logout",
|
||||||
{
|
"order": 200,
|
||||||
"id": "app.languagePicker",
|
"type": "custom",
|
||||||
"order": 100,
|
"component": "app.logout",
|
||||||
"type": "custom",
|
"rules": {
|
||||||
"component": "app.languagePicker"
|
"visible": "app.canShowLogout"
|
||||||
},
|
}
|
||||||
{
|
|
||||||
"id": "logout.separator",
|
|
||||||
"type": "separator",
|
|
||||||
"order": 199
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "app.logout",
|
|
||||||
"order": 200,
|
|
||||||
"type": "custom",
|
|
||||||
"component": "app.logout",
|
|
||||||
"rules": {
|
|
||||||
"visible": "app.canShowLogout"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"icons": [
|
"icons": [
|
||||||
|
@@ -1,14 +1,14 @@
|
|||||||
<button mat-button class="aca-menu-user-details-button" [matMenuTriggerFor]="menu">
|
<button mat-button class="aca-user-menu-button" [matMenuTriggerFor]="menu">
|
||||||
<div>{{ (displayName$ | async)?.initials }}</div>
|
<div>{{ (displayName$ | async)?.initials }}</div>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<mat-menu #menu="matMenu" xPosition="before">
|
<mat-menu #menu="matMenu" xPosition="before">
|
||||||
<div mat-menu-item class="aca-menu-user-details" [routerLink]="['/profile']"
|
<div mat-menu-item class="aca-user-menu" [routerLink]="['/profile']"
|
||||||
title="{{'APP.TOOLTIPS.MY_PROFILE' | translate}}">
|
title="{{'APP.TOOLTIPS.MY_PROFILE' | translate}}">
|
||||||
<button class="aca-menu-user-details-button">
|
<button class="aca-user-menu-button">
|
||||||
<div>{{ (displayName$ | async)?.initials }}</div>
|
<div>{{ (displayName$ | async)?.initials }}</div>
|
||||||
</button>
|
</button>
|
||||||
<div class="aca-menu-user-details-name-email">
|
<div class="aca-user-menu-name-email">
|
||||||
<div>{{ (displayName$ | async)?.firstName }}</div>
|
<div>{{ (displayName$ | async)?.firstName }}</div>
|
||||||
<div>{{ (displayName$ | async)?.email }}</div>
|
<div>{{ (displayName$ | async)?.email }}</div>
|
||||||
</div>
|
</div>
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
.aca-menu-user-details {
|
.aca-user-menu {
|
||||||
display: flex;
|
display: flex;
|
||||||
height: 66px;
|
height: 66px;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
@@ -33,7 +33,7 @@ import { BrowserActions } from '@alfresco/adf-testing';
|
|||||||
|
|
||||||
export class Header extends Component {
|
export class Header extends Component {
|
||||||
logoLink = this.byCss('.app-menu__title');
|
logoLink = this.byCss('.app-menu__title');
|
||||||
moreActions = this.byCss('.aca-menu-user-details-button');
|
moreActions = this.byCss('.aca-user-menu-button');
|
||||||
sidenavToggle = this.byCss(`.sidenav-header-title-logo`);
|
sidenavToggle = this.byCss(`.sidenav-header-title-logo`);
|
||||||
|
|
||||||
userInfo = new UserInfo();
|
userInfo = new UserInfo();
|
||||||
|
Reference in New Issue
Block a user