mirror of
				https://github.com/ComputerScienceHouse/proxstar.git
				synced 2025-03-09 15:40:09 +00:00 
			
		
		
		
	Disable other task buttons
These tasks are not currently reachable through the API. Given that I don't yet fully grasp what they do, that might not be a bad thing.
This commit is contained in:
		
							parent
							
								
									cd6bdba409
								
							
						
					
					
						commit
						7c4bcb2497
					
				
					 2 changed files with 8 additions and 5 deletions
				
			
		| 
						 | 
				
			
			@ -627,12 +627,14 @@ $(".add-ignored-pool").click(function(){
 | 
			
		|||
    });
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
// TODO: Move these tasks so they're callable via JS?
 | 
			
		||||
/*
 | 
			
		||||
$("#generate-pool-cache-task-button").click(function(){
 | 
			
		||||
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
$("#process-expiring-vms-task-button").click(function(){
 | 
			
		||||
});
 | 
			
		||||
*/
 | 
			
		||||
 | 
			
		||||
$("#cleanup-vnc-task-button").click(function(){
 | 
			
		||||
    const vncCleanupToken = $(this).data('vnc_cleanup_token');
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -114,10 +114,11 @@
 | 
			
		|||
            </div>
 | 
			
		||||
        </div>
 | 
			
		||||
        <div class="panel-body">
 | 
			
		||||
 | 
			
		||||
         
 | 
			
		||||
            <button class="btn btn-secondary" id="generate-pool-cache-task-button" name="generate-pool-cache-task-button" >GENERATE POOL CACHE</button>
 | 
			
		||||
            <button class="btn btn-secondary" id="process-expiring-vms-task-button" name="process-expiring-vms-task-button">PROCESS EXPIRING VMS</button>
 | 
			
		||||
            <!--TODO: Expose these functions through Flask so that they can be called with the API-->
 | 
			
		||||
            <!--
 | 
			
		||||
                <button class="btn btn-secondary" id="generate-pool-cache-task-button" name="generate-pool-cache-task-button" >GENERATE POOL CACHE</button>
 | 
			
		||||
                <button class="btn btn-secondary" id="process-expiring-vms-task-button" name="process-expiring-vms-task-button">PROCESS EXPIRING VMS</button>
 | 
			
		||||
            -->
 | 
			
		||||
            <button class="btn btn-secondary" id="cleanup-vnc-task-button" name="cleanup-vnc-task-button" data-vnc_cleanup_token="{{ vnc_cleanup_token }}" data-server_name="{{ server_name }}">CLEANUP VNC SESSIONS</button>
 | 
			
		||||
        </div>
 | 
			
		||||
    </div>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue