mirror of https://github.com/zulip/zulip.git
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:
parent
ab03c74314
commit
3e13914f4a
|
@ -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, {});
|
||||||
|
|
Loading…
Reference in New Issue