Home page changes depending on role

This commit is contained in:
2026-05-02 10:23:50 +02:00
parent d541cf18b1
commit 6d8fcc6b53
3 changed files with 39 additions and 26 deletions

View File

@@ -1,20 +1,18 @@
use std::net::ToSocketAddrs;
use gloo_net::http::Request;
use serde::{Deserialize, Serialize};
use wasm_bindgen_futures::spawn_local;
use yew::prelude::*;
use yew_router::prelude::use_navigator;
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct User {
pub id: i16,
pub last_name: String,
pub first_name: String,
pub username: String,
pub is_admin: bool,
pub pwd: String,
}
// #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
// pub struct User {
// pub id: i16,
// pub last_name: String,
// pub first_name: String,
// pub username: String,
// pub is_admin: bool,
// pub pwd: String,
// }
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct UserCreateScheme {