attachments_ui: Remove unused 'id' from 'Delete file' dialog widget.

The 'id' field in a dialog widget is used to add custom id to
the container element to modify styles.

We were not using this id anywhere, so this commit removes it.
This commit is contained in:
Prakhar Pratyush 2024-10-24 16:19:34 +05:30 committed by Tim Abbott
parent ab03c74314
commit 3e13914f4a
1 changed files with 0 additions and 1 deletions

View File

@ -92,7 +92,6 @@ function delete_attachments(attachment: string, file_name: string): void {
html_heading: $t_html({defaultMessage: "Delete file?"}), html_heading: $t_html({defaultMessage: "Delete file?"}),
html_body, html_body,
html_submit_button: $t_html({defaultMessage: "Delete"}), html_submit_button: $t_html({defaultMessage: "Delete"}),
id: "confirm_delete_file_modal",
focus_submit_on_open: true, focus_submit_on_open: true,
on_click() { on_click() {
dialog_widget.submit_api_request(channel.del, "/json/attachments/" + attachment, {}); dialog_widget.submit_api_request(channel.del, "/json/attachments/" + attachment, {});