diff --git a/public/i18n/en/translation.json b/public/i18n/en/translation.json index 057f388bb..b54bde146 100644 --- a/public/i18n/en/translation.json +++ b/public/i18n/en/translation.json @@ -383,7 +383,9 @@ "create_new_rule": "Create new rule", "rule_name": "Rule name", "assigned_policy": "Assigned policy", + "select_policy": "Select policy", "source_address": "Source Address", + "source_port": "Source Port", "destination_address": "Destination Address", "destination_port": "Destination Port", "protocol": "Protocol", @@ -392,6 +394,7 @@ "rules": "Rules", "rules_description": "Routing policies are assigned to hosts via rules. To use a different policy than the default, create a rule and place it above the default rule.", "no_rule_found": "No rule found", + "create_policy_before": "Please create a policy before continuing", "create_rule": "Create rule", "label_input_label": "Label", "behave_picker": { @@ -424,11 +427,15 @@ "interface_recovery_title": "WANs tests", "interface_recovery_description": "Number of tests needed to enable or disable the single WAN interface.", "delete_rule_modal": { + "title": "Are you sure you want to delete '{name}' rule?", "button": "@:common.delete" }, "delete_policy_modal": { + "title": "Are you sure you want to delete '{name}' policy?", "button": "@:common.delete" - } + }, + "any": "any", + "all": "all" }, "users_and_objects": { "title": "Users & objects" diff --git a/public/i18n/it/translation.json b/public/i18n/it/translation.json index abe51c58d..ef629d9f2 100644 --- a/public/i18n/it/translation.json +++ b/public/i18n/it/translation.json @@ -55,7 +55,9 @@ "cannot_retrieve_service_status": "Impossibile recuperare lo stato del servizio", "cannot_retrieve_wan_traffic": "Impossibile recuperare il traffico WAN", "cannot_retrieve_wan_list": "Impossibile recuperare l'elenco delle WAN", - "cannot_retrieve_traffic_summary": "Impossibile recuperare il riepilogo del traffico" + "cannot_retrieve_traffic_summary": "Impossibile recuperare il riepilogo del traffico", + "cancel_registration_error": "Impossibile annullare la registrazione", + "register_unit_error": "Impossibile registrare l'unità " }, "login": { "sign_in": "Accedi", @@ -196,7 +198,27 @@ "openvpn_rw": "OpenVPN RW" }, "subscription": { - "title": "Sottoscrizione" + "title": "Sottoscrizione", + "expiration": "Scadenza", + "remote_support": "Supporto remoto", + "register": "Registra", + "end_session": "Termina sessione", + "invalid_secret_or_server_not_found": "Token non valido o server non trovato", + "authentication_token_placeholder": "Incolla il token qui", + "no_expiration": "Nessuna scadenza", + "remote_support_description": "Disponibile solo per piani di sottoscrizione specifici.", + "session_id": "ID sessione", + "unit_subscription": "Registrazione unità ", + "authentication_token": "Token di autenticazione", + "status": "Stato", + "active": "Attivo", + "unit_subscription_description": "Incolla qui il token di autenticazione per abilitare la registrazione", + "plan": "Piano", + "copy_id": "Copia ID", + "cancel_registration": "Annulla registrazione", + "inactive": "Inattivo", + "system_id": "ID sistema", + "start_session": "Avvia sessione" }, "system_settings": { "title": "Impostazioni di sistema", diff --git a/src/components/standalone/multi-wan/MultiWanManager.vue b/src/components/standalone/multi-wan/MultiWanManager.vue index 77bc84b87..7076f4118 100644 --- a/src/components/standalone/multi-wan/MultiWanManager.vue +++ b/src/components/standalone/multi-wan/MultiWanManager.vue @@ -5,126 +5,137 @@ - - + - - + + {{ t('standalone.multi_wan.policy') }} @@ -133,9 +144,9 @@ function deletePolicyHandler() { @@ -144,19 +155,16 @@ function deletePolicyHandler() { {{ t('standalone.multi_wan.create_policy') }} - - - - (deletePolicy = toDeletePolicy)" - @edit="(toEditPolicy) => (editPolicy = toEditPolicy)" - /> - - + + + {{ t('standalone.multi_wan.no_policy_found') }} @@ -165,12 +173,98 @@ function deletePolicyHandler() { {{ t('standalone.multi_wan.create_default_policy') }} - + + + + + + + {{ item.label ?? item.name }} + + + + + + {{ t(`standalone.multi_wan.modes.${item.type}`) }} + + + + + + + {{ t('standalone.multi_wan.priority', metricIndex + 1) }} + + + + + + + + + + + + + + + + {{ t('common.edit') }} + + + + + + - + - - + + {{ t('standalone.multi_wan.rules') }} @@ -178,7 +272,12 @@ function deletePolicyHandler() { {{ t('standalone.multi_wan.rules_description') }} - + @@ -187,82 +286,43 @@ function deletePolicyHandler() { (deleteRule = toDeleteRule)" - @edit="(toEditRule) => (editRule = toEditRule)" + :loading="mwan.loading" + :policies-exist="mwan.policies.length > 0" + :rules="mwan.rules" + @delete="(rule) => (toDeleteRule = rule)" + @edit="(rule) => (toEditRule = rule)" /> - - - - + + - - - - - - - - - - - - - - - + :policies="mwan.policies" + @cancel="createRule = false" + @success="ruleCreated()" + /> + + diff --git a/src/components/standalone/multi-wan/PolicyCreator.vue b/src/components/standalone/multi-wan/PolicyCreator.vue index 76e2ce62a..4a590367f 100644 --- a/src/components/standalone/multi-wan/PolicyCreator.vue +++ b/src/components/standalone/multi-wan/PolicyCreator.vue @@ -1,7 +1,6 @@ @@ -333,58 +137,70 @@ function createPolicy() { - - + - - - {{ t('standalone.multi_wan.priority', index + 1) }} - - - - - - - - - - - + + - {{ t('standalone.multi_wan.add_gateway') }} - - - + + {{ t('standalone.multi_wan.priority', priorityIndex + 1) }} + + + + + + + + + + + + {{ t('standalone.multi_wan.add_gateway') }} + + + + @@ -392,10 +208,10 @@ function createPolicy() { - + {{ t('common.cancel') }} - + {{ t('common.save') }} diff --git a/src/components/standalone/multi-wan/PolicyDeleter.vue b/src/components/standalone/multi-wan/PolicyDeleter.vue new file mode 100644 index 000000000..a520ba2e7 --- /dev/null +++ b/src/components/standalone/multi-wan/PolicyDeleter.vue @@ -0,0 +1,57 @@ + + + + + + + diff --git a/src/components/standalone/multi-wan/PolicyEditor.vue b/src/components/standalone/multi-wan/PolicyEditor.vue index cb6598f71..57f366653 100644 --- a/src/components/standalone/multi-wan/PolicyEditor.vue +++ b/src/components/standalone/multi-wan/PolicyEditor.vue @@ -1,286 +1,173 @@ + - - - - - - - {{ t('standalone.multi_wan.priority', priorityIndex + 1) }} - - - - - + + + + + + + + + + {{ t('standalone.multi_wan.priority', priorityIndex + 1) }} + + + + + + + + + + - + {{ t('standalone.multi_wan.add_gateway') }} - {{ t('standalone.multi_wan.add_gateway') }} - - - - - - - Add Priority level - - - - - {{ t('common.cancel') }} - - - {{ t('common.save') }} + + + + Add Priority level + + + + {{ t('common.cancel') }} + + + {{ t('common.edit') }} + + - + diff --git a/src/components/standalone/multi-wan/PolicyView.vue b/src/components/standalone/multi-wan/PolicyView.vue deleted file mode 100644 index a81a2d841..000000000 --- a/src/components/standalone/multi-wan/PolicyView.vue +++ /dev/null @@ -1,181 +0,0 @@ - - - - - - - - - - - - {{ policy.name }} - - - - {{ t(policyLabel) }} - - - - - {{ t('standalone.multi_wan.priority', membersIndex + 1) }} - - - - - - - - - - - - - - {{ t('common.edit') }} - - - - - - diff --git a/src/components/standalone/multi-wan/RuleCreator.vue b/src/components/standalone/multi-wan/RuleCreator.vue index acf54f8bd..a2851848a 100644 --- a/src/components/standalone/multi-wan/RuleCreator.vue +++ b/src/components/standalone/multi-wan/RuleCreator.vue @@ -1,122 +1,142 @@ - - - - - - - - - - - - - - {{ t('common.cancel') }} - - - {{ t('common.save') }} - + + + + + + + + + + + + + {{ t('common.cancel') }} + + + {{ t('common.save') }} + + - + diff --git a/src/components/standalone/multi-wan/RuleDeleter.vue b/src/components/standalone/multi-wan/RuleDeleter.vue new file mode 100644 index 000000000..d30c5adb4 --- /dev/null +++ b/src/components/standalone/multi-wan/RuleDeleter.vue @@ -0,0 +1,69 @@ + + + + + + + diff --git a/src/components/standalone/multi-wan/RuleEditor.vue b/src/components/standalone/multi-wan/RuleEditor.vue index 3216e040b..4ed2f3d5c 100644 --- a/src/components/standalone/multi-wan/RuleEditor.vue +++ b/src/components/standalone/multi-wan/RuleEditor.vue @@ -1,121 +1,145 @@ - - - - - + + + + - - + {{ t('common.cancel') }} - {{ t('common.edit') }} + {{ t('common.save') }} - - + + diff --git a/src/components/standalone/multi-wan/RuleManager.vue b/src/components/standalone/multi-wan/RuleManager.vue index 89c0bc7da..6b8b78481 100644 --- a/src/components/standalone/multi-wan/RuleManager.vue +++ b/src/components/standalone/multi-wan/RuleManager.vue @@ -1,20 +1,21 @@
{{ t('standalone.multi_wan.no_policy_found') }}
{{ item.label ?? item.name }}
{{ t(`standalone.multi_wan.modes.${item.type}`) }}
{{ policy.name }}
{{ t(policyLabel) }}