| 
									
										
										
										
											2018-04-08 16:56:20 -07:00
										 |  |  | import StatusOptionsDialog from '../components/StatusOptionsDialog.html' | 
					
						
							|  |  |  | import { createDialogElement } from '../helpers/createDialogElement' | 
					
						
							|  |  |  | import { createDialogId } from '../helpers/createDialogId' | 
					
						
							| 
									
										
										
										
											2018-03-11 19:40:32 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-04-29 12:28:44 -07:00
										 |  |  | export default function showStatusOptionsDialog (status) { | 
					
						
							| 
									
										
										
										
											2018-03-11 19:40:32 -07:00
										 |  |  |   let dialog = new StatusOptionsDialog({ | 
					
						
							| 
									
										
										
										
											2018-03-31 18:46:44 -07:00
										 |  |  |     target: createDialogElement(), | 
					
						
							| 
									
										
										
										
											2018-03-11 19:40:32 -07:00
										 |  |  |     data: { | 
					
						
							| 
									
										
										
										
											2018-04-08 16:56:20 -07:00
										 |  |  |       id: createDialogId(), | 
					
						
							| 
									
										
										
										
											2018-03-11 19:40:32 -07:00
										 |  |  |       label: 'Status options dialog', | 
					
						
							| 
									
										
										
										
											2018-04-04 22:28:22 -07:00
										 |  |  |       title: '', | 
					
						
							| 
									
										
										
										
											2018-04-29 12:28:44 -07:00
										 |  |  |       status: status | 
					
						
							| 
									
										
										
										
											2018-03-11 19:40:32 -07:00
										 |  |  |     } | 
					
						
							|  |  |  |   }) | 
					
						
							|  |  |  |   dialog.show() | 
					
						
							|  |  |  | } |