mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
tooltip and i18n fixes (#3147)
* tooltip fixes * i18n for info drawer strings
This commit is contained in:
@@ -1,4 +1,12 @@
|
|||||||
{
|
{
|
||||||
|
"APP": {
|
||||||
|
"INFO_DRAWER": {
|
||||||
|
"TITLE": "Details",
|
||||||
|
"COMMENTS": "Comments",
|
||||||
|
"PROPERTIES": "Properties",
|
||||||
|
"VERSIONS": "Versions"
|
||||||
|
}
|
||||||
|
},
|
||||||
"title": "Welcome",
|
"title": "Welcome",
|
||||||
"VERSION": {
|
"VERSION": {
|
||||||
"NO_PERMISSION": "You don't have permission to manage versions of this content",
|
"NO_PERMISSION": "You don't have permission to manage versions of this content",
|
||||||
|
@@ -1,16 +1,16 @@
|
|||||||
<ng-container *ngIf="nodeId">
|
<ng-container *ngIf="nodeId">
|
||||||
|
|
||||||
<ng-template let-node="node" #sidebarTemplate>
|
<ng-template let-node="node" #sidebarTemplate>
|
||||||
<adf-info-drawer title="Details">
|
<adf-info-drawer [title]="'APP.INFO_DRAWER.TITLE' | translate">
|
||||||
<adf-info-drawer-tab label="Comments">
|
<adf-info-drawer-tab [label]="'APP.INFO_DRAWER.COMMENTS' | translate">
|
||||||
<adf-comments [nodeId]="nodeId"></adf-comments>
|
<adf-comments [nodeId]="nodeId"></adf-comments>
|
||||||
</adf-info-drawer-tab>
|
</adf-info-drawer-tab>
|
||||||
|
|
||||||
<adf-info-drawer-tab label="Properties">
|
<adf-info-drawer-tab [label]="'APP.INFO_DRAWER.PROPERTIES' | translate">
|
||||||
<adf-content-metadata-card [node]="node"></adf-content-metadata-card>
|
<adf-content-metadata-card [node]="node"></adf-content-metadata-card>
|
||||||
</adf-info-drawer-tab>
|
</adf-info-drawer-tab>
|
||||||
|
|
||||||
<adf-info-drawer-tab label="Versions">
|
<adf-info-drawer-tab [label]="'APP.INFO_DRAWER.VERSIONS' | translate">
|
||||||
<mat-card>
|
<mat-card>
|
||||||
<mat-card-content>
|
<mat-card-content>
|
||||||
<adf-version-manager [node]="node" (uploadError)="uploadError($event)">
|
<adf-version-manager [node]="node" (uploadError)="uploadError($event)">
|
||||||
|
@@ -11,7 +11,11 @@
|
|||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
<mat-card-footer class="adf-content-metadata-card-footer" fxLayout="row" fxLayoutAlign="space-between stretch">
|
<mat-card-footer class="adf-content-metadata-card-footer" fxLayout="row" fxLayoutAlign="space-between stretch">
|
||||||
<div>
|
<div>
|
||||||
<button *ngIf="!readOnly" mat-icon-button (click)="toggleEdit()" data-automation-id="mata-data-card-toggle-edit">
|
<button *ngIf="!readOnly"
|
||||||
|
mat-icon-button
|
||||||
|
(click)="toggleEdit()"
|
||||||
|
[attr.title]="'CORE.METADATA.ACTIONS.EDIT' | translate"
|
||||||
|
data-automation-id="mata-data-card-toggle-edit">
|
||||||
<mat-icon>mode_edit</mat-icon>
|
<mat-icon>mode_edit</mat-icon>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
@@ -2,6 +2,7 @@
|
|||||||
<div class="adf-property-label">{{ property.label | translate }}</div>
|
<div class="adf-property-label">{{ property.label | translate }}</div>
|
||||||
<div class="adf-property-value">
|
<div class="adf-property-value">
|
||||||
<mat-checkbox
|
<mat-checkbox
|
||||||
|
[attr.title]="'CORE.METADATA.ACTIONS.TOGGLE' | translate"
|
||||||
[checked]="property.displayValue"
|
[checked]="property.displayValue"
|
||||||
[disabled]="!isEditable()"
|
[disabled]="!isEditable()"
|
||||||
(change)="changed($event)">
|
(change)="changed($event)">
|
||||||
|
@@ -14,6 +14,7 @@
|
|||||||
<span *ngIf="showProperty(); else elseEmptyValueBlock">{{ property.displayValue }}</span>
|
<span *ngIf="showProperty(); else elseEmptyValueBlock">{{ property.displayValue }}</span>
|
||||||
</span>
|
</span>
|
||||||
<mat-datetimepicker-toggle
|
<mat-datetimepicker-toggle
|
||||||
|
[attr.title]="'CORE.METADATA.ACTIONS.EDIT' | translate"
|
||||||
[attr.data-automation-id]="'datepickertoggle-' + property.key"
|
[attr.data-automation-id]="'datepickertoggle-' + property.key"
|
||||||
[for]="datetimePicker">
|
[for]="datetimePicker">
|
||||||
</mat-datetimepicker-toggle>
|
</mat-datetimepicker-toggle>
|
||||||
|
@@ -15,7 +15,10 @@
|
|||||||
<span [attr.data-automation-id]="'card-textitem-value-' + property.key">
|
<span [attr.data-automation-id]="'card-textitem-value-' + property.key">
|
||||||
<span *ngIf="showProperty(); else elseEmptyValueBlock">{{ property.displayValue }}</span>
|
<span *ngIf="showProperty(); else elseEmptyValueBlock">{{ property.displayValue }}</span>
|
||||||
</span>
|
</span>
|
||||||
<mat-icon fxFlex="0 0 auto" [attr.data-automation-id]="'card-textitem-edit-icon-' + property.key" class="adf-textitem-icon">create</mat-icon>
|
<mat-icon fxFlex="0 0 auto"
|
||||||
|
[attr.data-automation-id]="'card-textitem-edit-icon-' + property.key"
|
||||||
|
[attr.title]="'CORE.METADATA.ACTIONS.EDIT' | translate"
|
||||||
|
class="adf-textitem-icon">create</mat-icon>
|
||||||
</div>
|
</div>
|
||||||
<div *ngIf="inEdit" class="adf-textitem-editable">
|
<div *ngIf="inEdit" class="adf-textitem-editable">
|
||||||
<div class="adf-textitem-editable-controls">
|
<div class="adf-textitem-editable-controls">
|
||||||
@@ -39,10 +42,12 @@
|
|||||||
<mat-icon
|
<mat-icon
|
||||||
class="adf-textitem-icon adf-update-icon"
|
class="adf-textitem-icon adf-update-icon"
|
||||||
(click)="update()"
|
(click)="update()"
|
||||||
|
[attr.title]="'CORE.METADATA.ACTIONS.SAVE' | translate"
|
||||||
[attr.data-automation-id]="'card-textitem-update-' + property.key">done</mat-icon>
|
[attr.data-automation-id]="'card-textitem-update-' + property.key">done</mat-icon>
|
||||||
<mat-icon
|
<mat-icon
|
||||||
class="adf-textitem-icon adf-reset-icon"
|
class="adf-textitem-icon adf-reset-icon"
|
||||||
(click)="reset()"
|
(click)="reset()"
|
||||||
|
[attr.title]="'CORE.METADATA.ACTIONS.CANCEL' | translate"
|
||||||
[attr.data-automation-id]="'card-textitem-reset-' + property.key">clear</mat-icon>
|
[attr.data-automation-id]="'card-textitem-reset-' + property.key">clear</mat-icon>
|
||||||
</div>
|
</div>
|
||||||
<mat-error class="adf-textitem-editable-error" *ngIf="hasErrors()">
|
<mat-error class="adf-textitem-editable-error" *ngIf="hasErrors()">
|
||||||
|
@@ -140,6 +140,12 @@
|
|||||||
"CREATED_DATE": "Created Date",
|
"CREATED_DATE": "Created Date",
|
||||||
"MODIFIER": "Modifier",
|
"MODIFIER": "Modifier",
|
||||||
"MODIFIED_DATE": "Modified Date"
|
"MODIFIED_DATE": "Modified Date"
|
||||||
|
},
|
||||||
|
"ACTIONS": {
|
||||||
|
"EDIT": "Edit",
|
||||||
|
"SAVE": "Save",
|
||||||
|
"CANCEL": "Cancel",
|
||||||
|
"TOGGLE": "Toggle value"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user