aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+admin
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-06-07 10:20:59 +0200
committerChocobozzz <me@florianbigard.com>2018-06-07 10:20:59 +0200
commit5b7c47a781f33bfbeff12c30f5c790bac2378731 (patch)
tree54cdbe44093cebc08267541a4dfb2b922be25d1f /client/src/app/+admin
parent99d103019c76c517ba607a0fab8022aa6d08ef2e (diff)
downloadPeerTube-5b7c47a781f33bfbeff12c30f5c790bac2378731.tar.gz
PeerTube-5b7c47a781f33bfbeff12c30f5c790bac2378731.tar.zst
PeerTube-5b7c47a781f33bfbeff12c30f5c790bac2378731.zip
Add help if the config is invalid
Diffstat (limited to 'client/src/app/+admin')
-rw-r--r--client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.html1
-rw-r--r--client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.scss5
2 files changed, 6 insertions, 0 deletions
diff --git a/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.html b/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.html
index 4a6c631fb..7f0323601 100644
--- a/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.html
+++ b/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.html
@@ -272,4 +272,5 @@ Check this checkbox, save the configuration and test with a video URL of your in
272 </tabset> 272 </tabset>
273 273
274 <input (click)="formValidated()" type="submit" i18n-value value="Update configuration" [disabled]="!form.valid"> 274 <input (click)="formValidated()" type="submit" i18n-value value="Update configuration" [disabled]="!form.valid">
275 <span class="form-error" i18n *ngIf="!form.valid">It seems the configration is invalid. Please search potential errors in the different tabs.</span>
275</form> 276</form>
diff --git a/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.scss b/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.scss
index e81044554..4c9167211 100644
--- a/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.scss
+++ b/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.scss
@@ -19,6 +19,11 @@ input[type=submit] {
19 @include orange-button; 19 @include orange-button;
20 20
21 margin-top: 20px; 21 margin-top: 20px;
22
23 & + .form-error {
24 display: inline;
25 margin-left: 5px;
26 }
22} 27}
23 28
24.inner-form-title { 29.inner-form-title {