mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-27 11:41:09 -04:00
fix self-update
This commit is contained in:
18725
public/assets/css/laraspace.css
vendored
Normal file
18725
public/assets/css/laraspace.css
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1
public/assets/css/laraspace.css.map
Normal file
1
public/assets/css/laraspace.css.map
Normal file
File diff suppressed because one or more lines are too long
191246
public/assets/js/app.js
Normal file
191246
public/assets/js/app.js
Normal file
File diff suppressed because one or more lines are too long
1
public/assets/js/app.js.map
Normal file
1
public/assets/js/app.js.map
Normal file
File diff suppressed because one or more lines are too long
6
public/mix-manifest.json
Normal file
6
public/mix-manifest.json
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"/assets/js/app.js": "/assets/js/app.js",
|
||||
"/assets/css/laraspace.css": "/assets/css/laraspace.css",
|
||||
"/assets/js/app.js.map": "/assets/js/app.js.map",
|
||||
"/assets/css/laraspace.css.map": "/assets/css/laraspace.css.map"
|
||||
}
|
||||
@ -69,6 +69,7 @@ export default {
|
||||
let res = await window.axios.post('/api/update', this.updateData)
|
||||
|
||||
if (res.data.success) {
|
||||
await window.axios.post('/api/update/finish', this.updateData)
|
||||
this.isUpdateAvailable = false
|
||||
window.toastr['success'](this.$t('settings.update_app.update_success'))
|
||||
this.currentVersion = this.updateData.version
|
||||
@ -83,6 +84,7 @@ export default {
|
||||
|
||||
this.isUpdating = false
|
||||
},
|
||||
|
||||
async checkUpdate () {
|
||||
try {
|
||||
this.isCheckingforUpdate = true
|
||||
|
||||
@ -135,8 +135,8 @@ Route::group(['middleware' => 'api'], function () {
|
||||
'uses' => 'UpdateController@update'
|
||||
]);
|
||||
|
||||
Route::post('/finish/update', [
|
||||
'as' => 'auto.finish.update',
|
||||
Route::post('/update/finish', [
|
||||
'as' => 'auto.update.finish',
|
||||
'uses' => 'UpdateController@finishUpdate'
|
||||
]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user