Fix all the broken form pages (#266)

Random nits, part the second

TRA is particular about form pages. It'll actually break itself if an extension throws an exception (which it should do). The POC was more forgiving (but technically incorrect)

Well, turns out, all the form pages we had did not give an F and just threw exceptions. They shouldn't! That's bad!
This commit is contained in:
Mike Griese
2025-01-07 13:19:01 -06:00
committed by GitHub
parent bbff0fe7ab
commit c275f07f64
4 changed files with 0 additions and 16 deletions

View File

@@ -54,10 +54,6 @@ internal sealed partial class AddBookmarkForm : Form
return json;
}
public override string DataJson() => throw new NotImplementedException();
public override string StateJson() => "{}";
public override CommandResult SubmitForm(string payload)
{
var formInput = JsonNode.Parse(payload);

View File

@@ -67,10 +67,6 @@ internal sealed partial class BookmarkPlaceholderForm : Form
return json;
}
public override string DataJson() => throw new NotImplementedException();
public override string StateJson() => "{}";
public override CommandResult SubmitForm(string payload)
{
var target = _bookmark;

View File

@@ -52,10 +52,6 @@ internal sealed partial class SpongeSettingsForm : Form
return json;
}
public override string DataJson() => throw new NotImplementedException();
public override string StateJson() => "{}";
public override CommandResult SubmitForm(string payload)
{
var formInput = JsonNode.Parse(payload);

View File

@@ -48,10 +48,6 @@ internal sealed partial class YouTubeAPIForm : Form
return json;
}
public override string DataJson() => throw new NotImplementedException();
public override string StateJson() => "{}";
public override CommandResult SubmitForm(string payload)
{
var formInput = JsonNode.Parse(payload);