From 40a3e7ca55b16600121d1f506af3313baf032dd8 Mon Sep 17 00:00:00 2001 From: lapy Date: Tue, 13 Oct 2026 11:12:03 +0100 Subject: [PATCH] fix(web): repair merge-corrupted templates and provider page Template-compile scan (vue-template-compiler over all .vue files) found four files with mismatched tags, all fallout from the upstream rebase: - CustomDialog.vue: the confirm footer button opened with and closed with , and the options object declared a second computed: block that clobbered the first (killing effectiveCancelText/ effectiveConfirmText => blank modal buttons). Merge the computed blocks, restore data(), close the button tag. - AddWisdomBodyDialog.vue: duplicate legacy body plus a stray for a root; drop the dead duplicate. - FirmwareDialog.vue: finished the half-applied el-dialog -> CustomDialog conversion (confirm/cancel wiring, dialogVisible in data). - ProviderManagement.vue: the merge interleaved the old el-table markup with the new CustomTable template, producing a structurally broken page. Adopt upstream's clean CustomTable version and re-apply the four Han strings (comments/title/error text). Also add 4 i18n keys referenced but missing from every locale (common.noData / addFailure / updateFailure, message.searchFailed) in en, de, pt_BR and vi. Verified: 0 template compile errors, 0 missing i18n keys, audit clean. --- .../src/components/AddWisdomBodyDialog.vue | 19 +- .../src/components/CustomDialog.vue | 16 +- .../src/components/FirmwareDialog.vue | 12 +- main/manager-web/src/i18n/de.js | 4 + main/manager-web/src/i18n/en.js | 4 + main/manager-web/src/i18n/pt_BR.js | 4 + main/manager-web/src/i18n/vi.js | 4 + .../src/views/ProviderManagement.vue | 407 +----------------- 8 files changed, 56 insertions(+), 414 deletions(-) diff --git a/main/manager-web/src/components/AddWisdomBodyDialog.vue b/main/manager-web/src/components/AddWisdomBodyDialog.vue index b5500beca..877c67343 100644 --- a/main/manager-web/src/components/AddWisdomBodyDialog.vue +++ b/main/manager-web/src/components/AddWisdomBodyDialog.vue @@ -24,24 +24,7 @@ @keyup.enter.native="confirm" /> -
-
-
-
*
{{ $t('addAgentDialog.agentName') }}: -
-
- -
-
-
-
- {{ $t('addAgentDialog.confirm') }} -
-
- {{ $t('addAgentDialog.cancel') }} -
-
- +