Skip to content
Snippets Groups Projects
Commit 536002e9 authored by Alex ORLUC's avatar Alex ORLUC
Browse files

fix shortcuts in superadmin

parent c59ceb9a
No related branches found
No related tags found
No related merge requests found
......@@ -30,13 +30,13 @@
<mat-nav-list>
<h3 mat-subheader>{{lang.shortcut}}</h3>
<div class="button-row" style="padding-left: 10px;padding-right: 10px;display: flex;width: 250px;">
<span style="flex:1;text-align: center;padding: 5px;">
<span style="flex:1;text-align: left;padding: 5px;">
<button color="primary" mat-icon-button (click)="gotToMenu('/home','true');" matTooltip="{{lang.home}}">
<mat-icon class="fa fa-home" style="height:auto;"></mat-icon>
</button>
</span>
<ng-container *ngFor="let shortcut of user.menu">
<span style="flex:1;text-align: center;padding: 5px;" *ngIf="shortcut.shortcut == 'true'">
<span style="flex:1;text-align: left;padding: 5px;" *ngIf="shortcut.shortcut == 'true'">
<button color="primary" mat-icon-button (click)="gotToMenu(shortcut.servicepage,shortcut.angular);" matTooltip="{{shortcut.name}}">
<mat-icon class="fa {{shortcut.style}}" style="height:auto;"></mat-icon>
</button>
......
......@@ -88,6 +88,7 @@ abstract class ServiceModelAbstract
'name' => $name,
'comment' => $comment,
'servicepage' => (string) $value->servicepage,
'shortcut' => empty((string)$value->shortcut) ? 'false' : (string)$value->shortcut,
'style' => (string) $value->style,
'angular' => empty((string) $value->angular) ? 'false' : (string) $value->angular,
];
......@@ -96,6 +97,7 @@ abstract class ServiceModelAbstract
'name' => $name,
'comment' => $comment,
'servicepage' => (string) $value->servicepage,
'shortcut' => empty((string)$value->shortcut) ? 'false' : (string)$value->shortcut,
'style' => (string) $value->style,
'angular' => empty((string) $value->angular) ? 'false' : (string) $value->angular,
];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment