mirror of
				https://github.com/pelican-dev/panel.git
				synced 2025-11-04 13:26:53 +01:00 
			
		
		
		
	Changes CopyOnClick to allow any. Allows database information to be copied on click. Changes layouts on database/backups to match the network tab. Changes text to lighten it one level from 400 to 300 for easier visibility. Moves database api endpoints to their own folder for some organization.
		
			
				
	
	
		
			10 lines
		
	
	
		
			293 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			293 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
import http from '@/api/http';
 | 
						|
 | 
						|
export default (uuid: string, database: string): Promise<void> => {
 | 
						|
    return new Promise((resolve, reject) => {
 | 
						|
        http.delete(`/api/client/servers/${uuid}/databases/${database}`)
 | 
						|
            .then(() => resolve())
 | 
						|
            .catch(reject);
 | 
						|
    });
 | 
						|
};
 |