add Request Feature button to about

This commit is contained in:
Send_Nukez 2021-11-17 21:20:01 +01:00
parent 58324a3ff2
commit 3448e7cffc
2 changed files with 18 additions and 2 deletions

View file

@ -1,5 +1,5 @@
Added:
- `Report Bugs` and `Changelog` buttons to `Settings > About`
- `Report Bugs`, `Request Feature` and `Changelog` buttons to `Settings > About`
- Markdown parsing for settings descriptions
- Option to have a button to open the settings next to your profile picture

View file

@ -389,7 +389,7 @@ waitForElement(["#main"], () => {
type: "button",
key: "aboutDribbblishBugs",
name: "Report Bugs",
description: "Open new issue on GitHub",
description: "Open new issue on GitHub to report a bug",
data: "Create Report",
onChange: () => {
const reportBody = `
@ -444,6 +444,22 @@ waitForElement(["#main"], () => {
}
});
Dribbblish.config.register({
area: "About",
type: "button",
key: "aboutDribbblishFeature",
name: "Request Feature",
description: "Open new issue on GitHub to request a feature",
data: "Request Feature",
onChange: () => {
const reportURL = new URL("https://github.com/JulienMaille/dribbblish-dynamic-theme/issues/new");
reportURL.searchParams.set("labels", "enhancement");
reportURL.searchParams.set("template", "feature_request.md");
window.open(reportURL.toString(), "_blank");
}
});
Dribbblish.config.register({
area: "About",
type: "button",