Added button for making feature requests

This commit is contained in:
FlorianMichael 2024-02-21 23:23:08 +01:00
parent fe50697f8e
commit e9b060fc3c
No known key found for this signature in database
GPG Key ID: C2FB87E71C425126
3 changed files with 6 additions and 1 deletions

View File

@ -1,6 +1,6 @@
name: Feature Request
description: Suggest a feature to be added in ViaFabricPlus
labels: [ Feature Request ]
labels: [ enhancement ]
body:
- type: markdown

View File

@ -49,6 +49,10 @@ public class ReportIssuesScreen extends VFPScreen {
Util.getOperatingSystem().open(URI.create("https://github.com/ViaVersion/ViaFabricPlus/issues/new?assignees=&labels=bug&projects=&template=bug_report.yml"));
this.setupSubtitle(Text.of("Opened GitHub issue page!"));
});
actions.put("report.viafabricplus.feature_request", () -> {
Util.getOperatingSystem().open(URI.create("https://github.com/ViaVersion/ViaFabricPlus/issues/new?assignees=&labels=enhancement&projects=&template=feature_request.yml"));
this.setupSubtitle(Text.of("Opened GitHub issue page!"));
});
actions.put("report.viafabricplus.create_via_dump", () -> DumpUtil.postDump(client.getSession().getUuidOrNull()).whenComplete((s, throwable) -> {
if (throwable != null) {
this.setupSubtitle(Text.of("Failed to create a dump! See logs for more information."));

View File

@ -90,6 +90,7 @@
"report.viafabricplus.button": "Report issues",
"report.viafabricplus.bug_report": "Report a bug on GitHub",
"report.viafabricplus.feature_request": "Request a feature on GitHub",
"report.viafabricplus.create_via_dump": "Create a ViaVersion dump",
"report.viafabricplus.open_logs": "Open the logs folder",