mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 22:43:42 +00:00
dialog_widget: Color of button should be according to use of modal.
We show red color for confirmation modals and green for other modals with input fields. As of this commit, only confirmation modals use dialog_widget but some other modals with input fields will be migrated to use dialog_widget.
This commit is contained in:
@@ -62,7 +62,7 @@ export function show_dialog_spinner() {
|
||||
}
|
||||
|
||||
export function launch(conf) {
|
||||
const html = render_dialog_widget({fade: conf.fade});
|
||||
const html = render_dialog_widget({fade: conf.fade, is_confirm_dialog: conf.is_confirm_dialog});
|
||||
const dialog = $(html);
|
||||
|
||||
const mandatory_fields = [
|
||||
|
||||
Reference in New Issue
Block a user