;
},
diff --git a/src/components/views/dialogs/RedesignFeedbackDialog.js b/src/components/views/dialogs/RedesignFeedbackDialog.js
new file mode 100644
index 0000000000..c428aca16a
--- /dev/null
+++ b/src/components/views/dialogs/RedesignFeedbackDialog.js
@@ -0,0 +1,51 @@
+/*
+Copyright 2018 New Vector Ltd
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
+import React from 'react';
+import QuestionDialog from './QuestionDialog';
+import { _t } from '../../../languageHandler';
+
+export default (props) => {
+ const existingIssuesUrl = "https://github.com/vector-im/riot-web/issues" +
+ "?q=is%3Aopen+is%3Aissue+label%3Aredesign+sort%3Areactions-%2B1-desc";
+ const newIssueUrl = "https://github.com/vector-im/riot-web/issues/new" +
+ "?assignees=&labels=redesign&template=redesign_issue.md&title=";
+
+ const description1 =
+ _t("Thanks for testing the Riot Redesign. " +
+ "If you run into any bugs or visual issues, " +
+ "please let us know on GitHub.");
+ const description2 = _t("To help avoid duplicate issues, " +
+ "please view existing issues " +
+ "first (and add a +1) or create a new issue " +
+ "if you can't find it.", {},
+ {
+ existingIssuesLink: (sub) => {
+ return { sub };
+ },
+ newIssueLink: (sub) => {
+ return { sub };
+ },
+ });
+
+ return (
{description1}
{description2}
}
+ button={_t("Go back")}
+ onFinished={props.onFinished}
+ />);
+};
diff --git a/src/components/views/elements/ActionButton.js b/src/components/views/elements/ActionButton.js
index a9d95e4a52..1ca5ab9983 100644
--- a/src/components/views/elements/ActionButton.js
+++ b/src/components/views/elements/ActionButton.js
@@ -31,6 +31,7 @@ export default React.createClass({
mouseOverAction: PropTypes.string,
label: PropTypes.string.isRequired,
iconPath: PropTypes.string,
+ className: PropTypes.string,
},
getDefaultProps: function() {
@@ -76,8 +77,13 @@ export default React.createClass({
() :
undefined;
+ const classNames = ["mx_RoleButton"];
+ if (this.props.className) {
+ classNames.push(this.props.className);
+ }
+
return (
-
);
};
GroupsButton.propTypes = {
size: PropTypes.string,
- tooltip: PropTypes.bool,
};
export default GroupsButton;
diff --git a/src/i18n/strings/en_EN.json b/src/i18n/strings/en_EN.json
index c137253a43..14e5c14529 100644
--- a/src/i18n/strings/en_EN.json
+++ b/src/i18n/strings/en_EN.json
@@ -1348,5 +1348,9 @@
"Import": "Import",
"Failed to set direct chat tag": "Failed to set direct chat tag",
"Failed to remove tag %(tagName)s from room": "Failed to remove tag %(tagName)s from room",
- "Failed to add tag %(tagName)s to room": "Failed to add tag %(tagName)s to room"
+ "Failed to add tag %(tagName)s to room": "Failed to add tag %(tagName)s to room",
+ "Report bugs & give feedback": "Report bugs & give feedback",
+ "Thanks for testing the Riot Redesign. If you run into any bugs or visual issues, please let us know on GitHub.": "Thanks for testing the Riot Redesign. If you run into any bugs or visual issues, please let us know on GitHub.",
+ "To help avoid duplicate issues, please view existing issues first (and add a +1) or create a new issue if you can't find it.": "To help avoid duplicate issues, please view existing issues first (and add a +1) or create a new issue if you can't find it.",
+ "Go back": "Go back"
}