mirror of
				https://github.com/crater-invoice/crater.git
				synced 2025-10-31 05:31:10 -04:00 
			
		
		
		
	add ability to delete file from UI
This commit is contained in:
		| @ -147,6 +147,7 @@ export default { | ||||
|       description: '', | ||||
|       currentVersion: '', | ||||
|       requiredExtentions: null, | ||||
|       deletedFiles: null, | ||||
|       updateSteps: [ | ||||
|         { | ||||
|           translationKey: 'settings.update_app.download_zip_file', | ||||
| @ -169,6 +170,13 @@ export default { | ||||
|           started: false, | ||||
|           completed: false, | ||||
|         }, | ||||
|         { | ||||
|           translationKey: 'settings.update_app.deleting_files', | ||||
|           stepUrl: '/api/v1/update/delete', | ||||
|           time: null, | ||||
|           started: false, | ||||
|           completed: false, | ||||
|         }, | ||||
|         { | ||||
|           translationKey: 'settings.update_app.running_migrations', | ||||
|           stepUrl: '/api/v1/update/migrate', | ||||
| @ -270,6 +278,7 @@ export default { | ||||
|           this.isUpdateAvailable = true | ||||
|           this.requiredExtentions = response.data.version.extensions | ||||
|           this.minPhpVesrion = response.data.version.minimum_php_version | ||||
|           this.deletedFiles = response.data.version.deleted_files | ||||
|         } | ||||
|       } catch (e) { | ||||
|         this.isUpdateAvailable = false | ||||
| @ -294,6 +303,7 @@ export default { | ||||
|           let updateParams = { | ||||
|             version: this.updateData.version, | ||||
|             installed: this.currentVersion, | ||||
|             deleted_files: this.deletedFiles, | ||||
|             path: path || null, | ||||
|           } | ||||
|  | ||||
|  | ||||
		Reference in New Issue
	
	Block a user