File tree Expand file tree Collapse file tree 3 files changed +30
-2
lines changed
components/forms/admin/settings
templates/components/forms/admin/settings Expand file tree Collapse file tree 3 files changed +30
-2
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,21 @@ export default Component.extend(FormMixin, {
29
29
]
30
30
} ,
31
31
32
+ apiUrl : {
33
+ identifier : 'api_url' ,
34
+ rules : [
35
+ {
36
+ type : 'empty' ,
37
+ prompt : this . l10n . t ( 'Please enter the API Url' )
38
+ } ,
39
+ {
40
+ type : 'regExp' ,
41
+ value : protocolLessValidUrlPattern ,
42
+ prompt : this . l10n . t ( 'Please enter a valid URL for the API' )
43
+ }
44
+ ]
45
+ } ,
46
+
32
47
googleStorageBucketName : {
33
48
identifier : 'google_storage_bucket_name' ,
34
49
rules : [
@@ -225,4 +240,4 @@ export default Component.extend(FormMixin, {
225
240
} ) ;
226
241
}
227
242
}
228
- } ) ;
243
+ } ) ;
Original file line number Diff line number Diff line change @@ -109,5 +109,6 @@ export default ModelBase.extend({
109
109
segmentedGithubUrl : computedSegmentedLink . bind ( this ) ( 'githubUrl' ) ,
110
110
segmentedAndroidAppUrl : computedSegmentedLink . bind ( this ) ( 'androidAppUrl' ) ,
111
111
segmentedWebAppUrl : computedSegmentedLink . bind ( this ) ( 'webAppUrl' ) ,
112
- segmentedFrontendUrl : computedSegmentedLink . bind ( this ) ( 'frontendUrl' )
112
+ segmentedFrontendUrl : computedSegmentedLink . bind ( this ) ( 'frontendUrl' ) ,
113
+ segmentedStaticDomain : computedSegmentedLink . bind ( this ) ( 'staticDomain' )
113
114
} ) ;
Original file line number Diff line number Diff line change 32
32
</label >
33
33
{{ input type =' text' name =' tag_line' value =settings.tagline }}
34
34
</div >
35
+ <h3 class =" ui header" >
36
+ {{ t ' API server details' }}
37
+ <div class =" sub header" >
38
+ {{ t ' The URL of the API that this frontend will make use of as the backend.' }}
39
+ </div >
40
+ </h3 >
41
+ <div class =" field" >
42
+ <label >
43
+ {{ t ' API Url' }}
44
+ </label >
45
+ {{ widgets/forms/link-input segmentedLink =settings.segmentedStaticDomain inputId =' api_url' }}
46
+ </div >
35
47
<div class =" ui hidden divider" ></div >
36
48
{{ forms/admin/settings/system/social-media-token settings =settings }}
37
49
<div class =" ui hidden divider" ></div >
You can’t perform that action at this time.
0 commit comments