Make existing and new issue URLs configurable (#10710)
* Make existing and new issue URLs configurable * Apply a deep merge over sdk config to allow sane nested structures * Defaultize * Fix types * Iterate * Add FeedbackDialog snapshot test * Add SdkConfig snapshot tests * Iterate * Fix tests * Iterate types * Fix test
This commit is contained in:
parent
e4610e4672
commit
6166dbb661
23 changed files with 259 additions and 78 deletions
|
@ -28,10 +28,6 @@ import { submitFeedback } from "../../../rageshake/submit-rageshake";
|
|||
import { useStateToggle } from "../../../hooks/useStateToggle";
|
||||
import StyledCheckbox from "../elements/StyledCheckbox";
|
||||
|
||||
const existingIssuesUrl =
|
||||
"https://github.com/vector-im/element-web/issues" + "?q=is%3Aopen+is%3Aissue+sort%3Areactions-%2B1-desc";
|
||||
const newIssueUrl = "https://github.com/vector-im/element-web/issues/new/choose";
|
||||
|
||||
interface IProps {
|
||||
feature?: string;
|
||||
onFinished(): void;
|
||||
|
@ -117,6 +113,9 @@ const FeedbackDialog: React.FC<IProps> = (props: IProps) => {
|
|||
);
|
||||
}
|
||||
|
||||
const existingIssuesUrl = SdkConfig.getObject("feedback").get("existing_issues_url");
|
||||
const newIssueUrl = SdkConfig.getObject("feedback").get("new_issue_url");
|
||||
|
||||
return (
|
||||
<QuestionDialog
|
||||
className="mx_FeedbackDialog"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue