fix for config files

This commit is contained in:
Yasa-Nataliya
2023-05-09 08:54:46 +00:00
parent fe443ad92d
commit 8932966627
7 changed files with 94 additions and 122 deletions

View File

@@ -46,39 +46,32 @@
"features": {
"header": [
{
"id": "app.header.user",
"id": "app.user.menu",
"type": "custom",
"component": "app.user",
"component": "app.user.menu",
"order": 100
}
],
"moreMenu": [
{
"id": "app.languagePicker",
"order": 100,
"type": "custom",
"component": "app.languagePicker"
},
{
"id": "app.header.more",
"type": "menu",
"order": 10000,
"icon": "more_vert",
"title": "APP.ACTIONS.MORE",
"children": [
{
"id": "app.languagePicker",
"order": 100,
"type": "custom",
"component": "app.languagePicker"
},
{
"id": "logout.separator",
"type": "separator",
"order": 199
},
{
"id": "app.logout",
"order": 200,
"type": "custom",
"component": "app.logout",
"rules": {
"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": [

View File

@@ -46,39 +46,32 @@
"features": {
"header": [
{
"id": "app.header.user",
"id": "app.user.menu",
"type": "custom",
"component": "app.user",
"component": "app.user.menu",
"order": 100
}
],
"moreMenu": [
{
"id": "app.languagePicker",
"order": 100,
"type": "custom",
"component": "app.languagePicker"
},
{
"id": "app.header.more",
"type": "menu",
"order": 10000,
"icon": "more_vert",
"title": "APP.ACTIONS.MORE",
"children": [
{
"id": "app.languagePicker",
"order": 100,
"type": "custom",
"component": "app.languagePicker"
},
{
"id": "logout.separator",
"type": "separator",
"order": 199
},
{
"id": "app.logout",
"order": 200,
"type": "custom",
"component": "app.logout",
"rules": {
"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": [

View File

@@ -46,39 +46,32 @@
"features": {
"header": [
{
"id": "app.header.user",
"id": "app.user.menu",
"type": "custom",
"component": "app.user",
"component": "app.user.menu",
"order": 100
}
],
"moreMenu": [
{
"id": "app.languagePicker",
"order": 100,
"type": "custom",
"component": "app.languagePicker"
},
{
"id": "app.header.more",
"type": "menu",
"order": 10000,
"icon": "more_vert",
"title": "APP.ACTIONS.MORE",
"children": [
{
"id": "app.languagePicker",
"order": 100,
"type": "custom",
"component": "app.languagePicker"
},
{
"id": "logout.separator",
"type": "separator",
"order": 199
},
{
"id": "app.logout",
"order": 200,
"type": "custom",
"component": "app.logout",
"rules": {
"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": [

View File

@@ -46,39 +46,32 @@
"features": {
"header": [
{
"id": "app.header.user",
"id": "app.user.menu",
"type": "custom",
"component": "app.user",
"component": "app.user.menu",
"order": 100
}
],
"moreMenu": [
{
"id": "app.languagePicker",
"order": 100,
"type": "custom",
"component": "app.languagePicker"
},
{
"id": "app.header.more",
"type": "menu",
"order": 10000,
"icon": "more_vert",
"title": "APP.ACTIONS.MORE",
"children": [
{
"id": "app.languagePicker",
"order": 100,
"type": "custom",
"component": "app.languagePicker"
},
{
"id": "logout.separator",
"type": "separator",
"order": 199
},
{
"id": "app.logout",
"order": 200,
"type": "custom",
"component": "app.logout",
"rules": {
"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": [

View File

@@ -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>
</button>
<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}}">
<button class="aca-menu-user-details-button">
<button class="aca-user-menu-button">
<div>{{ (displayName$ | async)?.initials }}</div>
</button>
<div class="aca-menu-user-details-name-email">
<div class="aca-user-menu-name-email">
<div>{{ (displayName$ | async)?.firstName }}</div>
<div>{{ (displayName$ | async)?.email }}</div>
</div>

View File

@@ -1,4 +1,4 @@
.aca-menu-user-details {
.aca-user-menu {
display: flex;
height: 66px;
align-items: center;

View File

@@ -33,7 +33,7 @@ import { BrowserActions } from '@alfresco/adf-testing';
export class Header extends Component {
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`);
userInfo = new UserInfo();