mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	We used html_submit_button to pass text to be present in the modal submit button. There are only two possible options as of now - "Confirm" and "Save changes" and the correct one can be determined using is_confirm_modal parameter. So, we remove this paramter for now and we can add it later if we have more type of modals using this widget.
		
			
				
	
	
		
			11 lines
		
	
	
		
			273 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
		
			273 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
import {$t_html} from "./i18n";
 | 
						|
import * as dialog_widget from "./dialog_widget";
 | 
						|
 | 
						|
export function launch(conf) {
 | 
						|
    dialog_widget.launch(
 | 
						|
        {...conf,
 | 
						|
         html_submit_button: $t_html({defaultMessage: "Confirm"}),
 | 
						|
         is_confirm_dialog: true,
 | 
						|
        });
 | 
						|
}
 |