Commit aec3fc81 authored by Hamza HRAMCHI's avatar Hamza HRAMCHI
Browse files

FIX #16956 TIME 0:45 hide : scroll if no correspondent and create contact button in autocompletion

parent 2c191b08
......@@ -102,7 +102,7 @@
<mat-spinner diameter="20"></mat-spinner>
</mat-option>
<div class="autoCompleteInfoResult smallInputInfo create-contact"
*ngIf="canAdd && (noResultFound !== null || options.length > 0) && !loading" disabled>
*ngIf="canAdd && (noResultFound !== null || options.length > 0) && !loading && !fromExternalWorkflow" disabled>
<a style="cursor: pointer;" (click)="$event.stopPropagation();openContact()">
<mat-icon matSuffix class="fas fa-plus-circle" style="padding-top: 5px"></mat-icon>
{{'lang.createContact' | translate}}
......
......@@ -43,6 +43,7 @@ export class ContactAutocompleteComponent implements OnInit {
@Input() singleMode: boolean = false;
@Input() inputMode: boolean = false;
@Input() fromExternalWorkflow: boolean = false;
@Output() retrieveDocumentEvent = new EventEmitter<string>();
@Output() afterSelected = new EventEmitter<any>();
......
......@@ -17,7 +17,7 @@
<div style="display: flex;margin-bottom: 10px;" *ngIf="searchMode">
<div style="flex: 1;">
<app-contact-autocomplete [exclusion]="'?noEntities=true&noContactsGroups=true'"
[inputMode]="true" style="width:100%;padding-bottom:10px;" (afterSelected)="getContact($event)">
[inputMode]="true" style="width:100%;padding-bottom:10px;" (afterSelected)="getContact($event)" [fromExternalWorkflow]="true">
</app-contact-autocomplete>
</div>
<div>
......@@ -33,15 +33,17 @@
</div>
<div class="formType-content">
<div class="correspondent-list">
<div *ngIf="correspondentShorcuts.length === 0" class="empty">
<div *ngIf="correspondentShorcuts.length === 0; else elseBlock" class="empty">
{{'lang.noSuggestion' | translate}}
</div>
<mat-chip-list>
<mat-chip *ngFor="let shortcut of correspondentShorcuts" [title]="shortcut.title"
(click)="setOtpInfoFromShortcut(shortcut)" style="cursor: pointer;font-size: 12px;min-height: 24px;">
{{shortcut.label}}
</mat-chip>
</mat-chip-list>
<ng-template #elseBlock>
<mat-chip-list>
<mat-chip *ngFor="let shortcut of correspondentShorcuts" [title]="shortcut.title"
(click)="setOtpInfoFromShortcut(shortcut)" style="cursor: pointer;font-size: 12px;min-height: 24px;">
{{shortcut.label}}
</mat-chip>
</mat-chip-list>
</ng-template>
</div>
<div>
<button mat-icon-button color="primary" [title]="'lang.searchCorrespondent' | translate" (click)="searchMode=!searchMode">
......
......@@ -50,4 +50,5 @@
color: #666;
text-align: center;
font-style: italic;
overflow: hidden;
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment