UserContentComponent.vala 407 B

12345678910
  1. class UserContentComponent : Component {
  2. public override string markup { get; }
  3. private HttpContext http_context = inject<HttpContext>();
  4. public async override void handle_action(string action) throws Error {
  5. this["message"].text_content = http_context.request.query_params.get_any_or_default("message") ?? "No message provided!";
  6. this["action"].text_content = action;
  7. }
  8. }