Added default placeholder route
This commit is contained in:
@@ -11,7 +11,7 @@ export class GlobalSettings {
|
||||
maxRequestRetries: number;
|
||||
waitBeforeRetry: number;
|
||||
webTemplatePrefix: string;
|
||||
webTemplateRoute: string;
|
||||
webFrontPlaceholder: string;
|
||||
}
|
||||
|
||||
export class GlobalSettingsNotification {
|
||||
|
||||
@@ -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">
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user