Disable update check button when there is no API key #74

Merged
lucas merged 2 commits from issue/71 into master 2023-03-16 14:28:59 +01:00
Showing only changes of commit 60780656cf - Show all commits

View file

@ -54,7 +54,7 @@ fn build_top_bar() -> impl Widget<State> {
.on_click(|ctx, _: &mut State, _| {
ctx.submit_command(ACTION_START_CHECK_UPDATE);
})
.disabled_if(|data, _| data.is_update_in_progress);
.disabled_if(|data, _| data.nexus_api_key.is_empty() || data.is_update_in_progress);
let deploy_button = {
let icon = Svg::new(SvgData::from_str(theme::icons::ALERT_CIRCLE).expect("invalid SVG"))