Skip to content

Commit

Permalink
feat(edit-content) add tooltip to the autocomplete #30222
Browse files Browse the repository at this point in the history
  • Loading branch information
oidacra committed Oct 23, 2024
1 parent db1621c commit 51eeca3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
<div class="dot-wysiwyg__language-selector">
<p-autoComplete
class="dot-wysiwyg__language-autocomplete"
[pTooltip]="'edit.content.wysiwyg-field.language-variable-tooltip' | dm"
tooltipPosition="bottom"
data-testId="language-variable-selector"
[placeholder]="'edit.content.wysiwyg-field.language-variable-placeholder' | dm"
[(ngModel)]="$selectedItem"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import { ConfirmDialogModule } from 'primeng/confirmdialog';
import { DropdownModule } from 'primeng/dropdown';
import { InputGroupModule } from 'primeng/inputgroup';
import { InputGroupAddonModule } from 'primeng/inputgroupaddon';
import { TooltipModule } from 'primeng/tooltip';

import { take } from 'rxjs/operators';

Expand Down Expand Up @@ -63,7 +64,8 @@ interface LanguageVariable {
AutoCompleteModule,
DotMessagePipe,
InputGroupModule,
InputGroupAddonModule
InputGroupAddonModule,
TooltipModule
],
templateUrl: './dot-edit-content-wysiwyg-field.component.html',
styleUrl: './dot-edit-content-wysiwyg-field.component.scss',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5804,6 +5804,7 @@ edit.content.category-field.search.empty.legend=To create a new category, naviga
edit.content.wysiwyg.confirm.switch-editor.header=Confirm View Change
edit.content.wysiwyg.confirm.switch-editor.message=Switching to the WYSIWYG view may change your code and cause code loss.<br> Are you sure you want to continue?
edit.content.wysiwyg-field.language-variable-placeholder=Language variables
edit.content.wysiwyg-field.language-variable-tooltip=Start typing to see matching Language Variables.

lts.expired.message = This version of dotCMS already reached EOL. Please contact your CSM to schedule an upgrade.
lts.expires.soon.message = Your dotCMS version will reach EOL in {0} days. Please contact your CSM to schedule an upgrade.
Expand Down

0 comments on commit 51eeca3

Please sign in to comment.