app: replace ConsoleService with gloo_console

This commit is contained in:
Valentin Tolmer
2023-03-08 14:44:08 +01:00
committed by nitnelave
parent f44e8b7659
commit 8d44717588
9 changed files with 48 additions and 31 deletions

View File

@@ -3,10 +3,10 @@ use crate::{
infra::common_component::{CommonComponent, CommonComponentParts},
};
use anyhow::{bail, Result};
use gloo_console::log;
use graphql_client::GraphQLQuery;
use validator_derive::Validate;
use yew::prelude::*;
use yew::services::ConsoleService;
use yew_form_derive::Model;
use yew_router::{
agent::{RouteAgentDispatcher, RouteRequest},
@@ -60,7 +60,7 @@ impl CommonComponent<CreateGroupForm> for CreateGroupForm {
Ok(true)
}
Msg::CreateGroupResponse(response) => {
ConsoleService::log(&format!(
log!(&format!(
"Created group '{}'",
&response?.create_group.display_name
));