if let Some(selected_key) = &selected_key {
let command_path = format!(
"/config/acme/account/{}",
- percent_encode_component(&*selected_key)
+ percent_encode_component(selected_key)
);
let command_future =
crate::http_delete_get::<String>(command_path, None);
.into(),
),
ViewState::View(account_name) => {
- Some(self.create_account_view_dialog(ctx, &*account_name))
+ Some(self.create_account_view_dialog(ctx, account_name))
}
}
}
match view_state {
ViewState::Add => Some(self.create_add_acme_domain_dialog(ctx)),
ViewState::Edit(domain_name) => {
- Some(self.create_edit_acme_domain_dialog(ctx, &*domain_name))
+ Some(self.create_edit_acme_domain_dialog(ctx, domain_name))
}
ViewState::EditAccount => Some(self.create_edit_acme_account_dialog(ctx)),
}
let command_path = format!(
"{}/{}",
ctx.props().url,
- percent_encode_component(&*selected_key)
+ percent_encode_component(selected_key)
);
let command_future = crate::http_delete(command_path, None);
let link = ctx.link().clone();
) -> Option<Html> {
match view_state {
ViewState::Add => Some(self.create_add_dns_plugin_dialog(ctx)),
- ViewState::Edit(id) => Some(self.create_edit_dns_plugin_dialog(ctx, &*id)),
+ ViewState::Edit(id) => Some(self.create_edit_dns_plugin_dialog(ctx, id)),
}
}
}
let props = ctx.props();
let disable_edit = if let Some(key) = &self.selection {
- let name: &str = &*key;
+ let name: &str = key;
!self.editors.contains_key(name)
} else {
true