feat: add tooltips for add task bar buttons

This commit is contained in:
Johannes Millan 2023-09-15 14:19:34 +02:00
parent 48ad0071e3
commit 2b305fcb48
4 changed files with 8 additions and 2 deletions

View File

@ -35,6 +35,7 @@
<div class="button-controls">
<button
(click)="isAddToBacklog=!isAddToBacklog"
[matTooltip]="T.F.TASK.ADD_TASK_BAR.TOGGLE_ADD_TO_BACKLOG_TODAY|translate"
class="switch-add-to-btn"
mat-icon-button
type="button"
@ -44,6 +45,7 @@
</button>
<button
(click)="isAddToBottom=!isAddToBottom"
[matTooltip]="T.F.TASK.ADD_TASK_BAR.TOGGLE_ADD_TOP_OR_BOTTOM|translate"
class="switch-add-to-bot-btn"
mat-icon-button
type="button"

View File

@ -13,6 +13,6 @@ import { TaskAttachmentListComponent } from './task-attachment-list/task-attachm
TaskAttachmentLinkDirective,
TaskAttachmentListComponent,
],
exports: [TaskAttachmentListComponent],
exports: [TaskAttachmentListComponent, TaskAttachmentLinkDirective],
})
export class TaskAttachmentModule {}

View File

@ -879,6 +879,8 @@ const T = {
CREATE_TASK: 'F.TASK.ADD_TASK_BAR.CREATE_TASK',
EXAMPLE: 'F.TASK.ADD_TASK_BAR.EXAMPLE',
START: 'F.TASK.ADD_TASK_BAR.START',
TOGGLE_ADD_TO_BACKLOG_TODAY: 'F.TASK.ADD_TASK_BAR.TOGGLE_ADD_TO_BACKLOG_TODAY',
TOGGLE_ADD_TOP_OR_BOTTOM: 'F.TASK.ADD_TASK_BAR.TOGGLE_ADD_TOP_OR_BOTTOM',
},
B: {
ADD_HALF_HOUR: 'F.TASK.B.ADD_HALF_HOUR',

View File

@ -863,7 +863,9 @@
"ADD_TASK_TO_TOP_OF_TODAY": "Add task to top of list",
"CREATE_TASK": "Create new task",
"EXAMPLE": "Example: \"Some task title @fri 4pm +projectName #some tag #some other tag 10m/3h\"",
"START": "Press enter one more time to start"
"START": "Press enter one more time to start",
"TOGGLE_ADD_TO_BACKLOG_TODAY": "Toggle adding task to backlog / today's list'",
"TOGGLE_ADD_TOP_OR_BOTTOM": "Toggle adding task to top & bottom of list"
},
"B": {
"ADD_HALF_HOUR": "Add 1/2 hour",