mirror of
https://github.com/danbulant/dribbblish-dynamic-theme
synced 2026-05-24 12:35:05 +00:00
add Request Feature button to about
This commit is contained in:
parent
58324a3ff2
commit
3448e7cffc
2 changed files with 18 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in a new issue