Skip to content

Commit eec74d0

Browse files
authored
fix: set add button to disabled until task name is provided (#2996)
set add button to disabled until task name is provided fix planner localization string
1 parent 14bb9c1 commit eec74d0

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

packages/mgt-components/src/components/mgt-planner/mgt-planner.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -871,6 +871,7 @@ export class MgtPlanner extends MgtTemplatedTaskComponent {
871871
: html`
872872
<fluent-button
873873
class="add-task"
874+
?disabled=${!this._newTaskName}
874875
@click=${this.onAddTaskClick}
875876
@keydown=${this.onAddTaskKeyDown}
876877
appearance="neutral">

stories/samples/general.stories.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export const Localization = () => html`
4242
noResultsFound: 'لم يتم العثور على نتائج',
4343
loadingMessage: 'Loading...'
4444
},
45-
tasks: {
45+
planner: {
4646
removeTaskSubtitle: 'delete',
4747
cancelNewTaskSubtitle: 'canceltest',
4848
newTaskPlaceholder: 'newTaskTest',

0 commit comments

Comments
 (0)