Skip to content

Commit

Permalink
[+] Settings for creating AZ zones on/off CactuseSecurity#2597
Browse files Browse the repository at this point in the history
  • Loading branch information
SolidProgramming committed Nov 1, 2024
1 parent 653c4cd commit 040f202
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
5 changes: 5 additions & 0 deletions roles/database/files/sql/idempotent/fworch-texts.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2221,6 +2221,8 @@ INSERT INTO txt VALUES ('email_cc', 'German', 'CC');
INSERT INTO txt VALUES ('email_cc', 'English', 'CC');
INSERT INTO txt VALUES ('app_zone_pattern', 'German', 'App Zone Pattern');
INSERT INTO txt VALUES ('app_zone_pattern', 'English', 'Muster App Zone');
INSERT INTO txt VALUES ('app_zone_creation', 'German', 'App Zonen erstellen');
INSERT INTO txt VALUES ('app_zone_creation', 'English', 'Create App Zones');

-- monitoring
INSERT INTO txt VALUES ('open_alerts', 'German', 'Offene Alarme');
Expand Down Expand Up @@ -4998,6 +5000,9 @@ INSERT INTO txt VALUES ('H5630', 'English', 'Receiver of request emails: Selecti
INSERT INTO txt VALUES ('H5631', 'German', 'Muster App Zone: Definiert, wie der Name einer App Zone beginnt (z.B. "AZ").');
INSERT INTO txt VALUES ('H5631', 'English', 'App zone pattern: Defines how the name of an app zone begins (e.g. "AZ").');

INSERT INTO txt VALUES ('H5632', 'German', 'App Zonen erstellen: Wenn dieses Flag gesetzt wird, werden App Zonen erstellt.');
INSERT INTO txt VALUES ('H5632', 'English', 'Create app zones: If this flag is set, app zones are created.');

INSERT INTO txt VALUES ('H5701', 'German', 'Die in der Datenbank hinterlegten sprachabhängigen Texte können individuell überschrieben werden.
Dabei werden die vom System vorgegebenen Texte nicht geändert, sondern nur durch die hier definierten Texte - falls vorhanden - überblendet.
Die hier gemachten Änderungen werden in der UI beim nächsten Login sichtbar, bei Hilfetexten erst nach dem nächsten Restart.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ public class ModellingNamingConvention
[JsonProperty("appRolePattern"), JsonPropertyName("appRolePattern")]
public string AppRolePattern { get; set; } = "";

[JsonProperty("createApplicationZones"), JsonPropertyName("createApplicationZones")]
public bool CreateAppZones { get; set; }

[JsonProperty("applicationZone"), JsonPropertyName("applicationZone")]
public string AppZone { get; set; } = "";
}
Expand Down
8 changes: 7 additions & 1 deletion roles/ui/files/FWO.UI/Pages/Settings/SettingsModelling.razor
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,15 @@
</div>
</div>
<div class="form-group row mt-2">
<div class="row col-sm-4 align-items-center" data-toggle="tooltip" title="@(userConfig.PureLine("H5632"))">
<label class="col-form-label col-sm-8">@(userConfig.GetText("app_zone_creation")):</label>
<div class="col-sm-2">
<input type="checkbox" @bind="namingConvention.CreateAppZones">
</div>
</div>
<div class="row col-sm-4" data-toggle="tooltip" title="@(userConfig.PureLine("H5631"))">
<label class="col-form-label col-sm-5">@userConfig.GetText("app_zone_pattern"):</label>
<input type="text" class="col-sm-4" @bind="namingConvention.AppZone" />
<input disabled="@(!namingConvention.CreateAppZones)" type="text" class="col-sm-4" @bind="namingConvention.AppZone" />
</div>
</div>
<hr />
Expand Down

0 comments on commit 040f202

Please sign in to comment.