Skip to content

Commit d877e25

Browse files
authored
Merge pull request #1067 from yasirmturk/fixes-postgres-type
Fixes Postgres db type
2 parents eb40ac0 + 8732945 commit d877e25

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

resources/ts/pages/setup/database.vue

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
<div class="welcome-box border-b border-gray-300 p-3 text-gray-700">
44
<div class="md:-mx-4 md:flex">
55
<div class="md:px-4 md:w-1/2 w-full">
6-
<ns-field v-for="( field, key ) of firstPartFields" v-bind:key="key" :field="field"
6+
<ns-field v-for="( field, key ) of firstPartFields" v-bind:key="key" :field="field"
77
@change="form.validateField( field )">
88
<span>{{ field.label }}</span>
99
<template slot="description">{{ field.description }}</template>
1010
</ns-field>
1111
</div>
1212
<div class="md:px-4 md:w-1/2 w-full">
13-
<ns-field v-for="( field, key ) of secondPartFields" v-bind:key="key" :field="field"
13+
<ns-field v-for="( field, key ) of secondPartFields" v-bind:key="key" :field="field"
1414
@change="form.validateField( field )">
1515
<span>{{ field.label }}</span>
1616
<template slot="description">{{ field.description }}</template>
@@ -37,7 +37,7 @@ export default {
3737
}),
3838
methods: {
3939
validate() {
40-
if (
40+
if (
4141
this.form.validateFields( this.firstPartFields ) &&
4242
this.form.validateFields( this.secondPartFields )
4343
) {
@@ -54,18 +54,18 @@ export default {
5454
5555
const operation = this.checkDatabase( form );
5656
57-
operation.subscribe(
57+
operation.subscribe(
5858
result => {
5959
this.form.enableFields( this.firstPartFields );
6060
this.form.enableFields( this.secondPartFields );
6161
6262
nsRouter.push( '/configuration' );
6363
nsSnackBar.success( result.message, 'OKAY', { duration: 5000 }).subscribe();
64-
},
64+
},
6565
error => {
6666
this.form.enableFields( this.firstPartFields );
6767
this.form.enableFields( this.secondPartFields );
68-
68+
6969
nsSnackBar.error( error.message, 'OKAY' ).subscribe();
7070
}
7171
);
@@ -95,7 +95,7 @@ export default {
9595
value: 'mysql',
9696
}, {
9797
label: 'Postgres',
98-
value: 'postgres',
98+
value: 'pgsql',
9999
}, {
100100
label: 'SQLite',
101101
value: 'sqlite',

0 commit comments

Comments
 (0)