mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-4467] Fix Upload File Widget layout (#4675)
* [ADF-4467] Fix Upload File Widget layout * [ADF-4467] Refactor content services upload button
This commit is contained in:
committed by
Eugenio Romano
parent
0e2e5e35a0
commit
9d0e9ec219
@@ -24,15 +24,15 @@
|
||||
</mat-list>
|
||||
</div>
|
||||
|
||||
<div class="button-row" *ngIf="(!hasFile || multipleOption) && !field.readOnly">
|
||||
<a mat-raised-button color="primary">
|
||||
<div *ngIf="(!hasFile || multipleOption) && !field.readOnly">
|
||||
<button mat-raised-button color="primary" (click)="uploadFiles.click()">
|
||||
{{ 'FORM.FIELD.UPLOAD' | translate }}<mat-icon>file_upload</mat-icon>
|
||||
<input #uploadFiles
|
||||
[multiple]="multipleOption"
|
||||
type="file"
|
||||
[id]="field.id"
|
||||
(change)="onFileChanged($event)"/>
|
||||
</a>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<error-widget [error]="field.validationSummary"></error-widget>
|
||||
|
@@ -1,18 +1,10 @@
|
||||
|
||||
.adf-cloud {
|
||||
|
||||
&-upload-widget-container {
|
||||
margin-bottom: 15px;
|
||||
|
||||
input {
|
||||
cursor: pointer;
|
||||
height: 100%;
|
||||
right: 0;
|
||||
opacity: 0;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
width: 300px;
|
||||
z-index: 4;
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user