3
3
<div class =" welcome-box border-b border-gray-300 p-3 text-gray-700" >
4
4
<div class =" md:-mx-4 md:flex" >
5
5
<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"
7
7
@change =" form.validateField( field )" >
8
8
<span >{{ field.label }}</span >
9
9
<template slot="description">{{ field.description }}</template >
10
10
</ns-field >
11
11
</div >
12
12
<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"
14
14
@change =" form.validateField( field )" >
15
15
<span >{{ field.label }}</span >
16
16
<template slot="description">{{ field.description }}</template >
@@ -37,7 +37,7 @@ export default {
37
37
}),
38
38
methods: {
39
39
validate () {
40
- if (
40
+ if (
41
41
this .form .validateFields ( this .firstPartFields ) &&
42
42
this .form .validateFields ( this .secondPartFields )
43
43
) {
@@ -54,18 +54,18 @@ export default {
54
54
55
55
const operation = this .checkDatabase ( form );
56
56
57
- operation .subscribe (
57
+ operation .subscribe (
58
58
result => {
59
59
this .form .enableFields ( this .firstPartFields );
60
60
this .form .enableFields ( this .secondPartFields );
61
61
62
62
nsRouter .push ( ' /configuration' );
63
63
nsSnackBar .success ( result .message , ' OKAY' , { duration: 5000 }).subscribe ();
64
- },
64
+ },
65
65
error => {
66
66
this .form .enableFields ( this .firstPartFields );
67
67
this .form .enableFields ( this .secondPartFields );
68
-
68
+
69
69
nsSnackBar .error ( error .message , ' OKAY' ).subscribe ();
70
70
}
71
71
);
@@ -95,7 +95,7 @@ export default {
95
95
value: ' mysql' ,
96
96
}, {
97
97
label: ' Postgres' ,
98
- value: ' postgres ' ,
98
+ value: ' pgsql ' ,
99
99
}, {
100
100
label: ' SQLite' ,
101
101
value: ' sqlite' ,
0 commit comments