From 30e4d48b162adbbe437b7a9e18be07d0a5b83ad4 Mon Sep 17 00:00:00 2001 From: Florian Hotze Date: Thu, 24 Oct 2024 14:31:01 +0200 Subject: [PATCH] Refactor shared model code into a mixin (#2825) Fixes #2268, where the model building code in the model-picker was different from the model page. Signed-off-by: Florian Hotze --- .../components/model/model-picker-popup.vue | 144 +--------------- .../src/pages/settings/model/model-mixin.js | 160 ++++++++++++++++++ .../web/src/pages/settings/model/model.vue | 132 +-------------- 3 files changed, 171 insertions(+), 265 deletions(-) create mode 100644 bundles/org.openhab.ui/web/src/pages/settings/model/model-mixin.js diff --git a/bundles/org.openhab.ui/web/src/components/model/model-picker-popup.vue b/bundles/org.openhab.ui/web/src/components/model/model-picker-popup.vue index 5f58571eac..cd1e05ee62 100644 --- a/bundles/org.openhab.ui/web/src/components/model/model-picker-popup.vue +++ b/bundles/org.openhab.ui/web/src/components/model/model-picker-popup.vue @@ -67,13 +67,10 @@