Merge branch 'version-2021.5' into next

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>

# Conflicts:
#	web/src/locales/en.po
#	web/src/locales/pseudo-LOCALE.po
This commit is contained in:
Jens Langhammer 2021-05-22 13:10:04 +02:00
commit 50308510b4
4 changed files with 131 additions and 2 deletions

View File

@ -218,6 +218,22 @@ msgstr "Applications"
msgid "Apps with most usage" msgid "Apps with most usage"
msgstr "Apps with most usage" msgstr "Apps with most usage"
#: src/pages/flows/FlowListPage.ts
msgid ""
"Are you sure you want to clear the flow cache?\n"
"This will cause all flows to be re-evaluated on their next usage."
msgstr ""
"Are you sure you want to clear the flow cache?\n"
"This will cause all flows to be re-evaluated on their next usage."
#: src/pages/policies/PolicyListPage.ts
msgid ""
"Are you sure you want to clear the policy cache?\n"
"This will cause all policies to be re-evaluated on their next usage."
msgstr ""
"Are you sure you want to clear the policy cache?\n"
"This will cause all policies to be re-evaluated on their next usage."
#: src/elements/forms/DeleteForm.ts #: src/elements/forms/DeleteForm.ts
msgid "Are you sure you want to delete {0} {objName} ?" msgid "Are you sure you want to delete {0} {objName} ?"
msgstr "Are you sure you want to delete {0} {objName} ?" msgstr "Are you sure you want to delete {0} {objName} ?"
@ -530,6 +546,21 @@ msgstr "Checks if the request's user's password has been changed in the last x d
msgid "Checks the value from the policy request against several rules, mostly used to ensure password strength." msgid "Checks the value from the policy request against several rules, mostly used to ensure password strength."
msgstr "Checks the value from the policy request against several rules, mostly used to ensure password strength." msgstr "Checks the value from the policy request against several rules, mostly used to ensure password strength."
#: src/pages/flows/FlowListPage.ts
msgid "Clear Flow cache"
msgstr "Clear Flow cache"
#: src/pages/policies/PolicyListPage.ts
msgid "Clear Policy cache"
msgstr "Clear Policy cache"
#: src/pages/flows/FlowListPage.ts
#: src/pages/flows/FlowListPage.ts
#: src/pages/policies/PolicyListPage.ts
#: src/pages/policies/PolicyListPage.ts
msgid "Clear cache"
msgstr "Clear cache"
#: src/elements/forms/HorizontalFormElement.ts #: src/elements/forms/HorizontalFormElement.ts
msgid "Click to change value" msgid "Click to change value"
msgstr "Click to change value" msgstr "Click to change value"
@ -1316,6 +1347,14 @@ msgstr "Failed attempts before cancel"
msgid "Failed sources" msgid "Failed sources"
msgstr "Failed sources" msgstr "Failed sources"
#: src/pages/flows/FlowListPage.ts
msgid "Failed to delete flow cache"
msgstr "Failed to delete flow cache"
#: src/pages/policies/PolicyListPage.ts
msgid "Failed to delete policy cache"
msgstr "Failed to delete policy cache"
#: src/elements/forms/DeleteForm.ts #: src/elements/forms/DeleteForm.ts
msgid "Failed to delete {0}: {1}" msgid "Failed to delete {0}: {1}"
msgstr "Failed to delete {0}: {1}" msgstr "Failed to delete {0}: {1}"
@ -3081,6 +3120,14 @@ msgstr "Subject-alt name"
msgid "Successful" msgid "Successful"
msgstr "Successful" msgstr "Successful"
#: src/pages/flows/FlowListPage.ts
msgid "Successfully cleared flow cache"
msgstr "Successfully cleared flow cache"
#: src/pages/policies/PolicyListPage.ts
msgid "Successfully cleared policy cache"
msgstr "Successfully cleared policy cache"
#: src/flows/stages/authenticator_totp/AuthenticatorTOTPStage.ts #: src/flows/stages/authenticator_totp/AuthenticatorTOTPStage.ts
msgid "Successfully copied TOTP Config." msgid "Successfully copied TOTP Config."
msgstr "Successfully copied TOTP Config." msgstr "Successfully copied TOTP Config."

View File

@ -218,6 +218,18 @@ msgstr ""
msgid "Apps with most usage" msgid "Apps with most usage"
msgstr "" msgstr ""
#:
msgid ""
"Are you sure you want to clear the flow cache?\n"
"This will cause all flows to be re-evaluated on their next usage."
msgstr ""
#:
msgid ""
"Are you sure you want to clear the policy cache?\n"
"This will cause all policies to be re-evaluated on their next usage."
msgstr ""
#: #:
msgid "Are you sure you want to delete {0} {objName} ?" msgid "Are you sure you want to delete {0} {objName} ?"
msgstr "" msgstr ""
@ -528,6 +540,21 @@ msgstr ""
msgid "Checks the value from the policy request against several rules, mostly used to ensure password strength." msgid "Checks the value from the policy request against several rules, mostly used to ensure password strength."
msgstr "" msgstr ""
#:
msgid "Clear Flow cache"
msgstr ""
#:
msgid "Clear Policy cache"
msgstr ""
#:
#:
#:
#:
msgid "Clear cache"
msgstr ""
#: #:
msgid "Click to change value" msgid "Click to change value"
msgstr "" msgstr ""
@ -1312,6 +1339,14 @@ msgstr ""
msgid "Failed sources" msgid "Failed sources"
msgstr "" msgstr ""
#:
msgid "Failed to delete flow cache"
msgstr ""
#:
msgid "Failed to delete policy cache"
msgstr ""
#: #:
msgid "Failed to delete {0}: {1}" msgid "Failed to delete {0}: {1}"
msgstr "" msgstr ""
@ -3077,6 +3112,14 @@ msgstr ""
msgid "Successful" msgid "Successful"
msgstr "" msgstr ""
#:
msgid "Successfully cleared flow cache"
msgstr ""
#:
msgid "Successfully cleared policy cache"
msgstr ""
#: #:
msgid "Successfully copied TOTP Config." msgid "Successfully copied TOTP Config."
msgstr "" msgstr ""

View File

@ -6,6 +6,7 @@ import { TablePage } from "../../elements/table/TablePage";
import "../../elements/buttons/SpinnerButton"; import "../../elements/buttons/SpinnerButton";
import "../../elements/forms/DeleteForm"; import "../../elements/forms/DeleteForm";
import "../../elements/forms/ModalForm"; import "../../elements/forms/ModalForm";
import "../../elements/forms/ConfirmationForm";
import "./FlowForm"; import "./FlowForm";
import "./FlowImportForm"; import "./FlowImportForm";
import { TableColumn } from "../../elements/table/Table"; import { TableColumn } from "../../elements/table/Table";
@ -132,6 +133,24 @@ export class FlowListPage extends TablePage<Flow> {
</button> </button>
</ak-forms-modal> </ak-forms-modal>
${super.renderToolbar()} ${super.renderToolbar()}
`; <ak-forms-confirm
successMessage=${t`Successfully cleared flow cache`}
errorMessage=${t`Failed to delete flow cache`}
action=${t`Clear cache`}
.onConfirm=${() => {
return new FlowsApi(DEFAULT_CONFIG).flowsInstancesCacheClearCreate();
}}>
<span slot="header">
${t`Clear Flow cache`}
</span>
<p slot="body">
${t`Are you sure you want to clear the flow cache?
This will cause all flows to be re-evaluated on their next usage.`}
</p>
<button slot="trigger" class="pf-c-button pf-m-secondary" type="button">
${t`Clear cache`}
</button>
<div slot="modal"></div>
</ak-forms-confirm>`;
} }
} }

View File

@ -8,6 +8,7 @@ import "../../elements/buttons/SpinnerButton";
import "../../elements/forms/DeleteForm"; import "../../elements/forms/DeleteForm";
import "../../elements/forms/ModalForm"; import "../../elements/forms/ModalForm";
import "../../elements/forms/ProxyForm"; import "../../elements/forms/ProxyForm";
import "../../elements/forms/ConfirmationForm";
import "./PolicyTestForm"; import "./PolicyTestForm";
import { TableColumn } from "../../elements/table/Table"; import { TableColumn } from "../../elements/table/Table";
import { until } from "lit-html/directives/until"; import { until } from "lit-html/directives/until";
@ -150,7 +151,26 @@ export class PolicyListPage extends TablePage<Policy> {
}), html`<ak-spinner></ak-spinner>`)} }), html`<ak-spinner></ak-spinner>`)}
</ul> </ul>
</ak-dropdown> </ak-dropdown>
${super.renderToolbar()}`; ${super.renderToolbar()}
<ak-forms-confirm
successMessage=${t`Successfully cleared policy cache`}
errorMessage=${t`Failed to delete policy cache`}
action=${t`Clear cache`}
.onConfirm=${() => {
return new PoliciesApi(DEFAULT_CONFIG).policiesAllCacheClearCreate();
}}>
<span slot="header">
${t`Clear Policy cache`}
</span>
<p slot="body">
${t`Are you sure you want to clear the policy cache?
This will cause all policies to be re-evaluated on their next usage.`}
</p>
<button slot="trigger" class="pf-c-button pf-m-secondary" type="button">
${t`Clear cache`}
</button>
<div slot="modal"></div>
</ak-forms-confirm>`;
} }
} }