(container: HTMLElement)
| 914 | } |
| 915 | |
| 916 | protected createActionButtons(container: HTMLElement): void { |
| 917 | const leadingButtons: TaskModalLeadingButton[] = []; |
| 918 | if (this.isEditMode()) { |
| 919 | leadingButtons.push({ |
| 920 | className: "tn-task-modal__open-note-button", |
| 921 | text: this.t("modals.task.buttons.openNote"), |
| 922 | onClick: () => { |
| 923 | void this.openTaskNote(); |
| 924 | }, |
| 925 | }); |
| 926 | } |
| 927 | |
| 928 | createTaskModalActionButtons(this.getActionButtonContext(), { |
| 929 | container, |
| 930 | leadingButtons, |
| 931 | onSave: () => this.handleSave(), |
| 932 | onSaved: () => { |
| 933 | this.close(); |
| 934 | }, |
| 935 | onCancel: () => { |
| 936 | this.close(); |
| 937 | }, |
| 938 | }); |
| 939 | } |
| 940 | |
| 941 | protected getActionButtonContext(): TaskModalActionButtonContext { |
| 942 | return { |
nothing calls this directly
no test coverage detected