From 372b69236d168c2f420d16b59ae8ba4f2b5ce48c Mon Sep 17 00:00:00 2001 From: zlatsic Date: Tue, 24 Sep 2024 16:10:58 +0200 Subject: [PATCH] ex 3 js button fix --- examples/0003/src_js/views/main/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/0003/src_js/views/main/index.js b/examples/0003/src_js/views/main/index.js index d794c65..eb100f8 100644 --- a/examples/0003/src_js/views/main/index.js +++ b/examples/0003/src_js/views/main/index.js @@ -136,7 +136,7 @@ export function plot() { "button", { props: { - disabled: cur_model_name === value || value === 'Linear' || value === 'Cluster', + disabled: (cur_model_name || "").endsWith(value) || value === 'Linear' || value === 'Cluster', type: 'checkbox', id: 'id1', name: 'modelSelect', style: change_button_color(value, prediction_type), @@ -156,8 +156,8 @@ export function plot() { {props: { id: prediction_type + '_div', }}, - ["label",{props: {for: 'input2'}},' Current '+prediction_type+' Model '], - ["input",{props: {disabled: true, id: 'input2',value: cur_model_name }}], + ["label",{props: {for: 'input2'}},' Current '+prediction_type+' model '], + ["label", {props: {style: "font-weight: bold; color: green;"}}, cur_model_name || ''], ["br"], generate_setting_inputs(prediction_type), ["br"],