From 4ec5df6b12b8ee9c60b93d1afba942c628bdd520 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sat, 26 Jun 2021 22:30:33 +0200 Subject: [PATCH] web/admin: fix linting error Signed-off-by: Jens Langhammer --- web/src/locales/en.po | 10 ++++++++++ web/src/locales/pseudo-LOCALE.po | 7 +++++++ .../pages/policies/reputation/ReputationPolicyForm.ts | 5 +++++ web/src/pages/user-settings/UserSettingsPage.ts | 6 +++--- 4 files changed, 25 insertions(+), 3 deletions(-) diff --git a/web/src/locales/en.po b/web/src/locales/en.po index 908a4565e..d53b44033 100644 --- a/web/src/locales/en.po +++ b/web/src/locales/en.po @@ -3821,6 +3821,16 @@ msgstr "The external URL you'll authenticate at. Can be the same domain as authe msgid "The following objects use {objName}" msgstr "The following objects use {objName}" +#: src/pages/policies/reputation/ReputationPolicyForm.ts +msgid "" +"The policy passes when the reputation score is above the threshold, and\n" +"doesn't pass when either or both of the selected options are equal or less than the\n" +"threshold." +msgstr "" +"The policy passes when the reputation score is above the threshold, and\n" +"doesn't pass when either or both of the selected options are equal or less than the\n" +"threshold." + #: src/pages/policies/dummy/DummyPolicyForm.ts msgid "The policy takes a random time to execute. This controls the minimum time it will take." msgstr "The policy takes a random time to execute. This controls the minimum time it will take." diff --git a/web/src/locales/pseudo-LOCALE.po b/web/src/locales/pseudo-LOCALE.po index b708ce2f4..5d623fb18 100644 --- a/web/src/locales/pseudo-LOCALE.po +++ b/web/src/locales/pseudo-LOCALE.po @@ -3813,6 +3813,13 @@ msgstr "" msgid "The following objects use {objName}" msgstr "" +#: +msgid "" +"The policy passes when the reputation score is above the threshold, and\n" +"doesn't pass when either or both of the selected options are equal or less than the\n" +"threshold." +msgstr "" + #: msgid "The policy takes a random time to execute. This controls the minimum time it will take." msgstr "" diff --git a/web/src/pages/policies/reputation/ReputationPolicyForm.ts b/web/src/pages/policies/reputation/ReputationPolicyForm.ts index 045308c06..0ff3d1796 100644 --- a/web/src/pages/policies/reputation/ReputationPolicyForm.ts +++ b/web/src/pages/policies/reputation/ReputationPolicyForm.ts @@ -44,6 +44,11 @@ export class ReputationPolicyForm extends ModelForm {
${t`Allows/denys requests based on the users and/or the IPs reputation.`}
+
+ ${t`The policy passes when the reputation score is above the threshold, and + doesn't pass when either or both of the selected options are equal or less than the + threshold.`} +
; - @property() + @property({attribute: false}) sourceSettings?: Promise; constructor() { @@ -49,7 +49,7 @@ export class UserSettingsPage extends LitElement { }); } - firstUpdated() { + firstUpdated(): void { this.userSettings = new StagesApi(DEFAULT_CONFIG).stagesAllUserSettingsList(); this.sourceSettings = new SourcesApi(DEFAULT_CONFIG).sourcesAllUserSettingsList(); }