Browse Source

added tooltip to truncate text

pull/14335/head
Maksym Tsymbarov 10 months ago
parent
commit
2d03ee15ca
  1. 3
      ui-ngx/src/app/modules/home/components/vc/entity-version-create.component.html
  2. 2
      ui-ngx/src/app/modules/home/components/vc/entity-version-create.component.ts
  3. 4
      ui-ngx/src/app/modules/home/components/vc/entity-versions-table.component.html
  4. 5
      ui-ngx/src/app/modules/home/components/vc/entity-versions-table.component.scss
  5. 3
      ui-ngx/src/assets/locale/locale.constant-en_US.json

3
ui-ngx/src/app/modules/home/components/vc/entity-version-create.component.html

@ -37,9 +37,6 @@
createVersionFormGroup.get('versionName').hasError('pattern')"> createVersionFormGroup.get('versionName').hasError('pattern')">
{{ 'version-control.version-name-required' | translate }} {{ 'version-control.version-name-required' | translate }}
</mat-error> </mat-error>
<mat-error *ngIf="createVersionFormGroup.get('versionName').hasError('maxlength')">
{{ 'version-control.version-name-max-length' | translate }}
</mat-error>
</mat-form-field> </mat-form-field>
<mat-checkbox *ngIf="entityId.entityType === entityTypes.DEVICE" formControlName="saveCredentials" style="margin-bottom: 16px;"> <mat-checkbox *ngIf="entityId.entityType === entityTypes.DEVICE" formControlName="saveCredentials" style="margin-bottom: 16px;">
{{ 'version-control.export-credentials' | translate }} {{ 'version-control.export-credentials' | translate }}

2
ui-ngx/src/app/modules/home/components/vc/entity-version-create.component.ts

@ -86,7 +86,7 @@ export class EntityVersionCreateComponent extends PageComponent implements OnIni
this.createVersionFormGroup = this.fb.group({ this.createVersionFormGroup = this.fb.group({
branch: [this.branch, [Validators.required]], branch: [this.branch, [Validators.required]],
versionName: [this.translate.instant('version-control.default-create-entity-version-name', versionName: [this.translate.instant('version-control.default-create-entity-version-name',
{entityName: this.entityName}), [Validators.required, Validators.pattern(/(?:.|\s)*\S(&:.|\s)*/), Validators.maxLength(256)]], {entityName: this.entityName}), [Validators.required, Validators.pattern(/(?:.|\s)*\S(&:.|\s)*/)]],
saveRelations: [false, []], saveRelations: [false, []],
saveAttributes: [true, []], saveAttributes: [true, []],
saveCredentials: [true, []], saveCredentials: [true, []],

4
ui-ngx/src/app/modules/home/components/vc/entity-versions-table.component.html

@ -114,7 +114,9 @@
<ng-container matColumnDef="name"> <ng-container matColumnDef="name">
<mat-header-cell *matHeaderCellDef style="width: 50%"> {{ 'version-control.version-name' | translate }} </mat-header-cell> <mat-header-cell *matHeaderCellDef style="width: 50%"> {{ 'version-control.version-name' | translate }} </mat-header-cell>
<mat-cell *matCellDef="let entityVersion"> <mat-cell *matCellDef="let entityVersion">
{{ entityVersion.name }} <div tbTruncateWithTooltip>
{{ entityVersion.name }}
</div>
</mat-cell> </mat-cell>
</ng-container> </ng-container>
<ng-container matColumnDef="author"> <ng-container matColumnDef="author">

5
ui-ngx/src/app/modules/home/components/vc/entity-versions-table.component.scss

@ -55,7 +55,10 @@
} }
.table-container { .table-container {
overflow: auto; overflow: hidden;
.mat-mdc-table {
table-layout: fixed;
}
} }
.tb-entity-table-info{ .tb-entity-table-info{

3
ui-ngx/src/assets/locale/locale.constant-en_US.json

@ -6723,8 +6723,7 @@
"runtime-failed": "<b>Failed:</b> {{message}}", "runtime-failed": "<b>Failed:</b> {{message}}",
"auto-commit-settings-read-only-hint": "Auto-commit feature doesn't work with enabled read-only option in Repository settings.", "auto-commit-settings-read-only-hint": "Auto-commit feature doesn't work with enabled read-only option in Repository settings.",
"rollback-on-error": "Rollback on error", "rollback-on-error": "Rollback on error",
"rollback-on-error-hint": "If you have a large amount of entities to restore, consider disabling this option to increase performance.\n Note, if an error occurs over the course of version loading, already persisted entities (with relations, attributes, etc.) will stay as is", "rollback-on-error-hint": "If you have a large amount of entities to restore, consider disabling this option to increase performance.\n Note, if an error occurs over the course of version loading, already persisted entities (with relations, attributes, etc.) will stay as is"
"version-name-max-length": "Name should be less than 256"
}, },
"widget": { "widget": {
"widget-library": "Widgets library", "widget-library": "Widgets library",

Loading…
Cancel
Save