diff options
Diffstat (limited to 'client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.html')
-rw-r--r-- | client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.html | 14 |
1 files changed, 11 insertions, 3 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 6ae7b1b79..8fef39b79 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 | |||
@@ -1,4 +1,9 @@ | |||
1 | <h1 class="sr-only" i18n>Configuration</h1> | 1 | <h1 class="sr-only" i18n>Configuration</h1> |
2 | |||
3 | <div class="alert alert-warning" *ngIf="!isUpdateAllowed()" i18n> | ||
4 | Updating instance configuration from the web interface is disabled by the system administrator. | ||
5 | </div> | ||
6 | |||
2 | <form role="form" [formGroup]="form"> | 7 | <form role="form" [formGroup]="form"> |
3 | 8 | ||
4 | <div ngbNav #nav="ngbNav" [activeId]="activeNav" (activeIdChange)="onNavChange($event)" class="nav-tabs"> | 9 | <div ngbNav #nav="ngbNav" [activeId]="activeNav" (activeIdChange)="onNavChange($event)" class="nav-tabs"> |
@@ -63,7 +68,7 @@ | |||
63 | <div class="col-md-7 col-xl-5"></div> | 68 | <div class="col-md-7 col-xl-5"></div> |
64 | <div class="col-md-5 col-xl-5"> | 69 | <div class="col-md-5 col-xl-5"> |
65 | 70 | ||
66 | <div class="form-error submit-error" i18n *ngIf="!form.valid && serverConfig.allowEdits"> | 71 | <div class="form-error submit-error" i18n *ngIf="!form.valid && isUpdateAllowed()"> |
67 | There are errors in the form: | 72 | There are errors in the form: |
68 | 73 | ||
69 | <ul> | 74 | <ul> |
@@ -77,11 +82,14 @@ | |||
77 | You cannot allow live replay if you don't enable transcoding. | 82 | You cannot allow live replay if you don't enable transcoding. |
78 | </span> | 83 | </span> |
79 | 84 | ||
80 | <span i18n *ngIf="!serverConfig.allowEdits"> | 85 | <span i18n *ngIf="!isUpdateAllowed()"> |
81 | You cannot change the server configuration because it's managed externally. | 86 | You cannot change the server configuration because it's managed externally. |
82 | </span> | 87 | </span> |
83 | 88 | ||
84 | <input (click)="formValidated()" type="submit" i18n-value value="Update configuration" [disabled]="!form.valid || !hasConsistentOptions() || !serverConfig.allowEdits"> | 89 | <input |
90 | (click)="formValidated()" type="submit" i18n-value value="Update configuration" | ||
91 | [disabled]="!form.valid || !hasConsistentOptions() || !isUpdateAllowed()" | ||
92 | > | ||
85 | </div> | 93 | </div> |
86 | </div> | 94 | </div> |
87 | </form> | 95 | </form> |