Skip to content

Commit

Permalink
Can select basic envs now
Browse files Browse the repository at this point in the history
  • Loading branch information
yazz committed Nov 22, 2023
1 parent 7d3ced8 commit 3ca6b4b
Showing 1 changed file with 32 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ load_once_from_file(true)
---------------------------------------------- -->
<span style="width:40%;display: inline-block;">
<select v-model="pane_environments_selected_env_id"
@change="">
@change="pane_environment_envSelected()">
<option disabled value="">Please select one</option>
<option v-for="this_env in pane_environments_env_list"
v-bind:selected="pane_environments_selected_env_id == this_env.id"
Expand Down Expand Up @@ -1246,6 +1246,7 @@ load_once_from_file(true)
{
id: "NEW_ENV",
name: "",
description: "",
url_path: "",
backup_db: true,
backup_db_path: "",
Expand Down Expand Up @@ -1287,6 +1288,36 @@ load_once_from_file(true)
hideProgressBar()
} catch (e) {

}
},
pane_environment_envSelected: async function ( ) {
//----------------------------------------------------------------------------------
//
// /-------------------------------------/
// / pane_environment_envSelected /
// /-------------------------------------/
//
//----------------------------------------------------------------------------
// This changes environment being viewed
//--------------------------------------------------------------------
try {
let mm = this
showProgressBar()


for (let envIndex = 0 ; envIndex < mm.pane_environments_env_list.length; envIndex ++ ) {
if (mm.pane_environments_env_list[envIndex].id == mm.pane_environments_selected_env_id) {
mm.pane_environments_selected_env_pos = envIndex
}
}

mm.pane_environments_env_id = mm.pane_environments_env_list[mm.pane_environments_selected_env_pos].id
mm.pane_environments_env_name = mm.pane_environments_env_list[mm.pane_environments_selected_env_pos].name
mm.pane_environments_env_desc = mm.pane_environments_env_list[mm.pane_environments_selected_env_pos].description

hideProgressBar()
} catch (e) {

}
}

Expand Down

0 comments on commit 3ca6b4b

Please sign in to comment.