diff --git a/apps/maarch_entreprise/Views/menuShortcut.component.html b/apps/maarch_entreprise/Views/menuShortcut.component.html index e5631cdfb07e7df6072bc2caf1870585d7002016..b3228e8ce9fcf06e62553e21903904ef8c628ba0 100644 --- a/apps/maarch_entreprise/Views/menuShortcut.component.html +++ b/apps/maarch_entreprise/Views/menuShortcut.component.html @@ -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> diff --git a/src/app/group/models/ServiceModelAbstract.php b/src/app/group/models/ServiceModelAbstract.php index f721c141fdaa9447bc0cb043914e47102c1f157c..4d4c966767f564b02f39e0e28b63e6a549903bbb 100755 --- a/src/app/group/models/ServiceModelAbstract.php +++ b/src/app/group/models/ServiceModelAbstract.php @@ -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, ];