Added default placeholder route

This commit is contained in:
2019-07-08 13:14:47 +08:00
parent 20d3045ce3
commit 5aca716e33
9 changed files with 24 additions and 11 deletions

View File

@@ -11,7 +11,7 @@ export class GlobalSettings {
maxRequestRetries: number;
waitBeforeRetry: number;
webTemplatePrefix: string;
webTemplateRoute: string;
webFrontPlaceholder: string;
}
export class GlobalSettingsNotification {

View File

@@ -43,8 +43,8 @@
</div>
<div class="row mt-3">
<div class="col-12 d-flex">
<label for="web-route" class="pr-2 mt-auto mb-auto">Web Route</label>
<input type="text" class="flex-grow-1" id="web-route" [(ngModel)]="displaySettings.webTemplateRoute" >
<label for="webfront-placeholder" class="pr-2 mt-auto mb-auto">Frontpage Placeholder</label>
<textarea class="form-control flex" [(ngModel)]="displaySettings.webFrontPlaceholder" id="webfront-placeholder" rows="6"></textarea>
</div>
</div>
<div class="row mt-3">

View File

@@ -14,7 +14,7 @@ export class GlobalSettingsComponent implements OnInit {
updateGlobalSettings() {
this.tempSettings.secretRegistrationCode = this.displaySettings.secretRegistrationCode;
this.tempSettings.webTemplatePrefix = this.displaySettings.webTemplatePrefix;
this.tempSettings.webTemplateRoute = this.displaySettings.webTemplateRoute;
this.tempSettings.webFrontPlaceholder = this.displaySettings.webFrontPlaceholder;
this.tempSettings.threadsPerCampaign = parseInt(this.displaySettings.threadsPerCampaign, 10) + 0;
this.tempSettings.bcryptCost = parseInt(this.displaySettings.bcryptCost, 10);
this.tempSettings.maxRequestRetries = parseInt(this.displaySettings.maxRequestRetries, 10);