progress on docs, fixes in basic setup

This commit is contained in:
2023-09-18 15:14:09 +02:00
parent 9a4d38be31
commit 130831f050
15 changed files with 143 additions and 108 deletions

View File

@@ -53,7 +53,7 @@
source.close();
}, 500 );
setTimeout( () => {
$( 'manual-download' ).slideDown( 500 );
$( '#manual-download' ).slideDown( 500 );
}, 2000 );
} else if ( e.data === 'paymentOk' ) {
self.$refs.notification.createNotification( 'Your payment has been marked as completed!', 5, 'ok', 'normal' );

View File

@@ -108,6 +108,7 @@
},
methods: {
submit() {
this.collectUrl();
if ( this.formData.dbType === 'mysql' ) {
if ( !this.formData.db.port || !this.formData.db.host || !this.formData.db.database || !this.formData.db.user || !this.formData.db.password ) {
this.$refs.notification.createNotification( 'Database settings are not complete!', 5, 'error', 'normal' );
@@ -141,6 +142,10 @@
sessionStorage.setItem( 'basics', JSON.stringify( this.formData ) );
this.backendStore.addVisitedSetupPages( 'root', true );
this.$router.push( '/setup/root' );
},
collectUrl() {
this.formData.yourDomain = location.protocol + '//' + location.host;
this.formData.db.host = location.hostname;
}
},
created () {