Skip to content

Commit

Permalink
feat: add tooltips for add task bar buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
johannesjo committed Sep 15, 2023
1 parent 48ad007 commit 2b305fc
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ import { TaskAttachmentListComponent } from './task-attachment-list/task-attachm
TaskAttachmentLinkDirective,
TaskAttachmentListComponent,
],
exports: [TaskAttachmentListComponent],
exports: [TaskAttachmentListComponent, TaskAttachmentLinkDirective],
})
export class TaskAttachmentModule {}
2 changes: 2 additions & 0 deletions src/app/t.const.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
4 changes: 3 additions & 1 deletion src/assets/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 2b305fc

Please sign in to comment.