mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
* add majorVersion param move common part in base class * refactor upload queue * fix after refactoring * add comment functionality in versioning add minor and major option in versioning add animation in versioning add new functionality in demo shell * add animation test * add missing properties test and base upload class * fix reload after new version upload [ADF-2582] * update documentation * update doc and fix minor style issues * fix tslint error * change cachebuster * ADF-2672 version manager disable buttons * [ADF-2649] hide show actions in version list * fix tests
38 lines
1.5 KiB
HTML
38 lines
1.5 KiB
HTML
<div class="adf-new-version-max-width">
|
|
<mat-radio-group class="adf-new-version-radio-group" [(ngModel)]="semanticVersion">
|
|
<mat-radio-button class="adf-new-version-radio-button" [value]="'minor'">{{
|
|
'ADF_VERSION_LIST.ACTIONS.UPLOAD.MINOR' |
|
|
translate }}
|
|
</mat-radio-button>
|
|
<mat-radio-button class="adf-new-version-radio-button" [value]="'major'">{{
|
|
'ADF_VERSION_LIST.ACTIONS.UPLOAD.MAJOR' |
|
|
translate }}
|
|
</mat-radio-button>
|
|
</mat-radio-group>
|
|
<mat-form-field class="adf-new-version-max-width">
|
|
<input matInput [(ngModel)]="comment"
|
|
placeholder="{{ 'ADF_VERSION_LIST.ACTIONS.UPLOAD.COMMENT' | translate }}">
|
|
</mat-form-field>
|
|
|
|
</div>
|
|
<div>
|
|
<button mat-raised-button (click)="cancelUpload()" class="adf-cancel-button">{{
|
|
'ADF_VERSION_LIST.ACTIONS.UPLOAD.CANCEL'| translate }}
|
|
</button>
|
|
<adf-upload-version-button
|
|
data-automation-id="adf-new-version-file-upload"
|
|
class="adf-new-version-file-upload"
|
|
staticTitle="{{ 'ADF_VERSION_LIST.ACTIONS.UPLOAD.TITLE' | translate }}"
|
|
[node]="node"
|
|
[disabled]="!canUpload()"
|
|
[rootFolderId]="node.parentId"
|
|
tooltip="{{ 'ADF_VERSION_LIST.ACTIONS.UPLOAD.TOOLTIP' | translate }}"
|
|
[comment]="comment"
|
|
[versioning]="true"
|
|
[majorVersion]="isMajorVersion()"
|
|
(success)="success.emit($event)"
|
|
(error)="error.emit($event)">
|
|
</adf-upload-version-button>
|
|
</div>
|
|
|