mirror of
https://github.com/danbulant/dribbblish-dynamic-theme
synced 2026-06-08 09:12:22 +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:
|
Added:
|
||||||
- `Report Bugs` and `Changelog` buttons to `Settings > About`
|
- `Report Bugs`, `Request Feature` and `Changelog` buttons to `Settings > About`
|
||||||
- Markdown parsing for settings descriptions
|
- Markdown parsing for settings descriptions
|
||||||
- Option to have a button to open the settings next to your profile picture
|
- Option to have a button to open the settings next to your profile picture
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -389,7 +389,7 @@ waitForElement(["#main"], () => {
|
||||||
type: "button",
|
type: "button",
|
||||||
key: "aboutDribbblishBugs",
|
key: "aboutDribbblishBugs",
|
||||||
name: "Report Bugs",
|
name: "Report Bugs",
|
||||||
description: "Open new issue on GitHub",
|
description: "Open new issue on GitHub to report a bug",
|
||||||
data: "Create Report",
|
data: "Create Report",
|
||||||
onChange: () => {
|
onChange: () => {
|
||||||
const reportBody = `
|
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({
|
Dribbblish.config.register({
|
||||||
area: "About",
|
area: "About",
|
||||||
type: "button",
|
type: "button",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue