Add mechanism to hide advanced menu from config

This commit is contained in:
James 2018-10-01 11:52:48 +10:00
parent 5647d2cda9
commit 90f8792b15
3 changed files with 4 additions and 2 deletions

View File

@ -1,2 +1,2 @@
name = "yuzu"
target_url = "https://raw.githubusercontent.com/j-selby/test-installer/master/config.windows.v2.toml"
target_url = "https://raw.githubusercontent.com/j-selby/test-installer/master/config.windows.v3.toml"

View File

@ -64,6 +64,8 @@ pub struct Config {
#[serde(default)]
pub new_tool: Option<String>,
pub packages: Vec<PackageDescription>,
#[serde(default)]
pub hide_advanced: bool,
}
impl Config {

View File

@ -132,7 +132,7 @@ const SelectPackages = {
<div class="is-right-floating is-bottom-floating">
<div class="field is-grouped">
<p class="control">
<a class="button is-medium" v-if="!$root.$data.metadata.preexisting_install && !advanced"
<a class="button is-medium" v-if="!$root.$data.config.hide_advanced && !$root.$data.metadata.preexisting_install && !advanced"
v-on:click="advanced = true">Advanced...</a>
</p>
<p class="control">