mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			402 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			402 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
import * as dialog_widget from "./dialog_widget.ts";
 | 
						|
import type {DialogWidgetConfig} from "./dialog_widget.ts";
 | 
						|
import {$t_html} from "./i18n.ts";
 | 
						|
 | 
						|
export function launch(conf: DialogWidgetConfig): string {
 | 
						|
    return dialog_widget.launch({
 | 
						|
        close_on_submit: true,
 | 
						|
        focus_submit_on_open: true,
 | 
						|
        html_submit_button: $t_html({defaultMessage: "Confirm"}),
 | 
						|
        ...conf,
 | 
						|
    });
 | 
						|
}
 |