Skip to content

Commit

Permalink
ex 3 js button fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zlatsic committed Sep 24, 2024
1 parent 2e11138 commit 372b692
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/0003/src_js/views/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand All @@ -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"],
Expand Down

0 comments on commit 372b692

Please sign in to comment.