Skip to content

Commit eef63c6

Browse files
committed
Update JobStatus default
1 parent 91f835c commit eef63c6

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/components/Configuration.vue

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,13 @@ export default class Configuration extends Vue {
474474
Directories: [],
475475
Installation: [],
476476
},
477+
JobStore: {
478+
config: '',
479+
Database: {
480+
url: '',
481+
file: 0
482+
}
483+
},
477484
Server: {
478485
Content: './static',
479486
LogLocation: { directory: 'logs/server.log', level: 'info' },
@@ -511,6 +518,13 @@ export default class Configuration extends Vue {
511518
created(): void {
512519
this.$data.c = new AdabasConfig();
513520
this.$data.c.read().then((c: any) => {
521+
if (!c.JobStore) {
522+
c.JobStore = {config:"",Database:{url:"",file:0}}
523+
} else {
524+
if (!c.JobStore.Database) {
525+
c.JobStore.Database = {url:"",file:0}
526+
}
527+
}
514528
this.$data.config = c;
515529
this.$data.originConfig = JSON.parse(JSON.stringify(c));
516530
});

0 commit comments

Comments
 (0)