mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	Also removed the `danger_submit_button` config option from the dialog_widget since it isn't needed in the new modals.
		
			
				
	
	
		
			13 lines
		
	
	
		
			359 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			359 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
import * as dialog_widget from "./dialog_widget";
 | 
						|
import {$t_html} from "./i18n";
 | 
						|
 | 
						|
export function launch(conf) {
 | 
						|
    dialog_widget.launch({
 | 
						|
        ...conf,
 | 
						|
        close_on_submit: true,
 | 
						|
        focus_submit_on_open: true,
 | 
						|
        html_submit_button: $t_html({defaultMessage: "Confirm"}),
 | 
						|
        // Used to control button colors in the template.
 | 
						|
    });
 | 
						|
}
 |