Skip to content

Commit

Permalink
fix: set add button to disabled until task name is provided (#2996)
Browse files Browse the repository at this point in the history
set add button to disabled until task name is provided
fix planner localization string
  • Loading branch information
musale authored Feb 2, 2024
1 parent 14bb9c1 commit eec74d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -871,6 +871,7 @@ export class MgtPlanner extends MgtTemplatedTaskComponent {
: html`
<fluent-button
class="add-task"
?disabled=${!this._newTaskName}
@click=${this.onAddTaskClick}
@keydown=${this.onAddTaskKeyDown}
appearance="neutral">
Expand Down
2 changes: 1 addition & 1 deletion stories/samples/general.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export const Localization = () => html`
noResultsFound: 'لم يتم العثور على نتائج',
loadingMessage: 'Loading...'
},
tasks: {
planner: {
removeTaskSubtitle: 'delete',
cancelNewTaskSubtitle: 'canceltest',
newTaskPlaceholder: 'newTaskTest',
Expand Down

0 comments on commit eec74d0

Please sign in to comment.