MOBILE-3631 user: Fix profile communication buttons
parent
671f75bd6f
commit
67666f6f17
|
@ -14,8 +14,8 @@
|
||||||
<ion-list *ngIf="user && !isDeleted && isEnrolled">
|
<ion-list *ngIf="user && !isDeleted && isEnrolled">
|
||||||
<ion-item class="ion-text-center core-user-profile-maininfo">
|
<ion-item class="ion-text-center core-user-profile-maininfo">
|
||||||
<core-user-avatar [user]="user" [userId]="user.id" [linkProfile]="false" [checkOnline]="true">
|
<core-user-avatar [user]="user" [userId]="user.id" [linkProfile]="false" [checkOnline]="true">
|
||||||
<div class="core-icon-foreground">
|
<div class="core-icon-foreground" *ngIf="canChangeProfilePicture">
|
||||||
<ion-icon *ngIf="canChangeProfilePicture" name="fa-pen" (click)="changeProfilePicture()">
|
<ion-icon name="fa-pen" (click)="changeProfilePicture()">
|
||||||
</ion-icon>
|
</ion-icon>
|
||||||
</div>
|
</div>
|
||||||
</core-user-avatar>
|
</core-user-avatar>
|
||||||
|
@ -29,24 +29,23 @@
|
||||||
</ion-label>
|
</ion-label>
|
||||||
</ion-item>
|
</ion-item>
|
||||||
|
|
||||||
<ion-grid class="core-user-communication-handlers"
|
<div class="core-user-communication-handlers"
|
||||||
*ngIf="(communicationHandlers && communicationHandlers.length) || isLoadingHandlers">
|
*ngIf="(communicationHandlers && communicationHandlers.length) || isLoadingHandlers">
|
||||||
<ion-row class="ion-no-padding justify-content-between"
|
<ion-item *ngIf="communicationHandlers && communicationHandlers.length">
|
||||||
*ngIf="communicationHandlers && communicationHandlers.length">
|
<ion-label>
|
||||||
<ion-col *ngFor="let handler of communicationHandlers" class="ion-align-self-center ion-text-center">
|
<ion-button *ngFor="let handler of communicationHandlers" expand="block" size="default"
|
||||||
<a (click)="handlerClicked($event, handler)" [ngClass]="['core-user-profile-handler', handler.class || '']"
|
[ngClass]="['core-user-profile-handler', handler.class || '']" (click)="handlerClicked($event, handler)"
|
||||||
title="{{handler.title | translate}}">
|
[hidden]="handler.hidden" title="{{ handler.title | translate }}" [disabled]="handler.spinner">
|
||||||
<ion-icon [name]="handler.icon" slot="start"></ion-icon>
|
<ion-icon *ngIf="handler.icon" [name]="handler.icon" slot="start"></ion-icon>
|
||||||
<p>{{handler.title | translate}}</p>
|
{{ handler.title | translate }}
|
||||||
</a>
|
</ion-button>
|
||||||
</ion-col>
|
</ion-label>
|
||||||
</ion-row>
|
</ion-item>
|
||||||
<ion-row class="ion-no-padding">
|
<div *ngIf="isLoadingHandlers" class="ion-text-center core-loading-handlers">
|
||||||
<ion-col class="ion-text-center core-loading-handlers" *ngIf="isLoadingHandlers">
|
<ion-spinner></ion-spinner>
|
||||||
<ion-spinner></ion-spinner>
|
</div>
|
||||||
</ion-col>
|
</div>
|
||||||
</ion-row>
|
|
||||||
</ion-grid>
|
|
||||||
|
|
||||||
<ion-item button class="ion-text-wrap core-user-profile-handler" (click)="openUserDetails()"
|
<ion-item button class="ion-text-wrap core-user-profile-handler" (click)="openUserDetails()"
|
||||||
title="{{ 'core.user.details' | translate }}" detail>
|
title="{{ 'core.user.details' | translate }}" detail>
|
||||||
|
@ -70,14 +69,12 @@
|
||||||
|
|
||||||
<ion-item *ngIf="actionHandlers && actionHandlers.length">
|
<ion-item *ngIf="actionHandlers && actionHandlers.length">
|
||||||
<ion-label>
|
<ion-label>
|
||||||
<ion-button *ngFor="let handler of actionHandlers" expand="block" fill="outline"
|
<ion-button *ngFor="let handler of actionHandlers" expand="block" fill="outline" size="default"
|
||||||
[ngClass]="['core-user-profile-handler', handler.class || '']" (click)="handlerClicked($event, handler)"
|
[ngClass]="['core-user-profile-handler', handler.class || '']" (click)="handlerClicked($event, handler)"
|
||||||
[hidden]="handler.hidden" title="{{ handler.title | translate }}" [disabled]="handler.spinner">
|
[hidden]="handler.hidden" title="{{ handler.title | translate }}" [disabled]="handler.spinner">
|
||||||
<ion-icon *ngIf="handler.icon" [name]="handler.icon" slot="start"></ion-icon>
|
<ion-icon *ngIf="handler.icon" [name]="handler.icon" slot="start"></ion-icon>
|
||||||
<ion-label>
|
{{ handler.title | translate }}
|
||||||
<span>{{ handler.title | translate }}</span>
|
<ion-spinner *ngIf="handler.spinner" slot="end"></ion-spinner>
|
||||||
</ion-label>
|
|
||||||
<ion-spinner *ngIf="handler.spinner"></ion-spinner>
|
|
||||||
</ion-button>
|
</ion-button>
|
||||||
</ion-label>
|
</ion-label>
|
||||||
</ion-item>
|
</ion-item>
|
||||||
|
|
|
@ -43,45 +43,3 @@
|
||||||
right: unset;
|
right: unset;
|
||||||
}
|
}
|
||||||
|
|
||||||
// @todo
|
|
||||||
// .core-user-communication-handlers {
|
|
||||||
// background: $list-background-color;
|
|
||||||
// border-bottom: 1px solid $list-border-color;
|
|
||||||
|
|
||||||
// @include darkmode() {
|
|
||||||
// background: $core-dark-item-bg-color;
|
|
||||||
// }
|
|
||||||
|
|
||||||
// .core-user-profile-handler {
|
|
||||||
// background: $list-background-color;
|
|
||||||
// border: 0;
|
|
||||||
// color: $core-user-profile-communication-icons-color;
|
|
||||||
|
|
||||||
// @include darkmode() {
|
|
||||||
// background: $core-dark-item-bg-color;
|
|
||||||
// }
|
|
||||||
|
|
||||||
// p {
|
|
||||||
// margin: 0;
|
|
||||||
// }
|
|
||||||
|
|
||||||
// .icon {
|
|
||||||
// border-radius: 50%;
|
|
||||||
// width: 32px;
|
|
||||||
// height: 32px;
|
|
||||||
// max-width: 32px;
|
|
||||||
// font-size: 22px;
|
|
||||||
// line-height: 32px;
|
|
||||||
// color: white;
|
|
||||||
// background-color: $core-user-profile-communication-icons-color;
|
|
||||||
// margin-bottom: 5px;
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
// .core-user-profile-handler {
|
|
||||||
// ion-spinner {
|
|
||||||
// @include margin(null, null, null, 0.3em);
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue