| 
									
										
										
										
											2022-06-05 22:46:37 +02:00
										 |  |  | import AbstractBulkAction from "../abstract_bulk_action.js"; | 
					
						
							| 
									
										
										
										
											2021-02-14 21:35:13 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | const TPL = `
 | 
					
						
							|  |  |  | <tr> | 
					
						
							|  |  |  |     <td colspan="2"> | 
					
						
							|  |  |  |         <span class="bx bx-trash"></span> | 
					
						
							|  |  |  |      | 
					
						
							|  |  |  |         Delete note revisions | 
					
						
							|  |  |  |     </td> | 
					
						
							|  |  |  |     <td class="button-column"> | 
					
						
							|  |  |  |         <div class="dropdown help-dropdown"> | 
					
						
							|  |  |  |             <span class="bx bx-help-circle icon-action" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"></span> | 
					
						
							|  |  |  |             <div class="dropdown-menu dropdown-menu-right p-4"> | 
					
						
							|  |  |  |                 All past note revisions of matched notes will be deleted. Note itself will be fully preserved. In other terms, note's history will be removed. | 
					
						
							|  |  |  |             </div> | 
					
						
							|  |  |  |         </div> | 
					
						
							|  |  |  |      | 
					
						
							|  |  |  |         <span class="bx bx-x icon-action action-conf-del"></span> | 
					
						
							|  |  |  |     </td> | 
					
						
							|  |  |  | </tr>`; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-06-04 23:01:40 +02:00
										 |  |  | export default class DeleteRevisionsBulkAction extends AbstractBulkAction { | 
					
						
							|  |  |  |     static get actionName() { return "deleteRevisions"; } | 
					
						
							| 
									
										
										
										
											2022-06-03 17:29:08 +02:00
										 |  |  |     static get actionTitle() { return "Delete note revisions"; } | 
					
						
							| 
									
										
										
										
											2021-02-14 21:35:13 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  |     doRender() { | 
					
						
							|  |  |  |         return $(TPL); | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | } |