File tree Expand file tree Collapse file tree 1 file changed +23
-4
lines changed Expand file tree Collapse file tree 1 file changed +23
-4
lines changed Original file line number Diff line number Diff line change 46
46
>Database id in the range of greater 0 and smaller as
47
47
65536</b-form-text
48
48
>
49
+ <b-form-input
50
+ v-model =" inputUrl"
51
+ type =" text"
52
+ :state =" urlState()"
53
+ aria-describedby =" input-liveurl-help input-liveurl-feedback"
54
+ id =" nested-url"
55
+ trim
56
+ ></b-form-input >
57
+ <b-form-invalid-feedback id =" input-liveurl-feedback" >
58
+ URL not correct
59
+ </b-form-invalid-feedback >
60
+ <b-form-text id =" input-liveurl-help"
61
+ >Either empty or it need to be a ADATCP URL</b-form-text
62
+ >
49
63
</b-form-group >
50
64
<b-collapse id =" mapFile-collapse" >
51
65
<b-form-group
254
268
bordered
255
269
hover
256
270
small
257
- :items =" config.Module.FileAccess. Directories"
271
+ :items =" config.Module.Directories"
258
272
:fields =" fileFields"
259
273
>
260
274
<template v-slot :cell (delete)="row">
@@ -454,6 +468,7 @@ export default class Configuration extends Vue {
454
468
fileTransferName: ' ' ,
455
469
location: ' ' ,
456
470
dbid: ' 0' as string ,
471
+ inputUrl: ' ' ,
457
472
file: 100 as number ,
458
473
mapFileDisplay: false ,
459
474
modalType: ' ' ,
@@ -471,9 +486,7 @@ export default class Configuration extends Vue {
471
486
Metrics: { Database: [] },
472
487
Module: {
473
488
AdabasData: ' ' ,
474
- FileAccess: {
475
- Directories: [],
476
- },
489
+ Directories: [],
477
490
Installation: [],
478
491
},
479
492
JobStore: {
@@ -597,6 +610,12 @@ export default class Configuration extends Vue {
597
610
dbidState() {
598
611
return this .$data .dbid > 0 && this .$data .dbid < 64536 ? true : false ;
599
612
}
613
+ urlState() {
614
+ if (this .$data .inputUrl == " " ) {
615
+ return true ;
616
+ }
617
+ return / ^ adatcp[s] ? :\/\/ [\w \. ] * :\d * $ / .test (this .$data .inputUrl );
618
+ }
600
619
fileState() {
601
620
return this .$data .file > 0 && this .$data .file < 64536 ? true : false ;
602
621
}
You can’t perform that action at this time.
0 commit comments