dashboard include

This commit is contained in:
carodej
2020-07-05 09:14:17 +02:00
parent e1ebb70035
commit 5a5125967f
61 changed files with 1532 additions and 617 deletions

View File

@@ -123,6 +123,9 @@
formData.append('password', this.admin.password)
formData.append('password_confirmation', this.admin.password_confirmation)
formData.append('license', localStorage.getItem('license'))
formData.append('purchase_code', localStorage.getItem('purchase_code'))
if (this.admin.avatar)
formData.append('avatar', this.admin.avatar)
@@ -141,7 +144,11 @@
this.$store.commit('SET_AUTHORIZED', true)
// Go to files page
this.$router.push({name: 'Files'})
this.$router.push({name: 'Dashboard'})
// Remove license from localStorage
localStorage.removeItem('purchase_code')
localStorage.removeItem('license')
})
.catch(error => {

View File

@@ -126,18 +126,6 @@
label: 'MySQL',
value: 'mysql',
},
/*{
label: 'SQLite',
value: 'sqlite',
},
{
label: 'PqSQL',
value: 'pgsql',
},
{
label: 'SQLSry',
value: 'sqlsrv',
},*/
],
databaseCredentials: {
connection: 'mysql',

View File

@@ -119,8 +119,10 @@
if (response.data === 'b6896a44017217c36f4a6fdc56699728') {
this.isExtended = true
localStorage.setItem('license', 'Extended')
} else {
this.isExtended = false
localStorage.setItem('license', 'Regular')
}
})
.catch(error => {