Skip to content

Commit 8f56cc9

Browse files
committed
add one time notification that informs user product is in beta
1 parent a39ab71 commit 8f56cc9

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

js/components/OPApp.react.js

+8
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ var SectionStore = require('../stores/SectionStore');
66
var NavStore = require('../stores/NavStore');
77
var NavMenuStore = require('../stores/NavMenuStore');
88
var NavActions = require('../actions/NavActions');
9+
var Cookies = require('js-cookie');
910

1011
var getState = function (menuState) {
1112
return {
@@ -37,6 +38,13 @@ var OrthodoxPresenterApp = createReactClass({
3738
* @return {object}
3839
*/
3940
render: function () {
41+
var betaWindowCookie = Cookies.get('beta-window');
42+
if (betaWindowCookie !== 'true') {
43+
alert("Welcome to Orthodox Presenter! It's currently in BETA and things "
44+
+ "are still missing but we'd love for you to check it out! God bless");
45+
Cookies.set('beta-window', 'true')
46+
}
47+
4048
return (
4149
<div>
4250
<nav className="navbar navbar-inverse navbar-fixed-top">

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"classnames": "^2.1.3",
1111
"create-react-class": "^15",
1212
"flux": ">=2.0.1",
13+
"js-cookie": "^2.2.0",
1314
"keymirror": ">0.1.0",
1415
"object-assign": ">1.0.0",
1516
"rc-slider": "^8.3.1",

0 commit comments

Comments
 (0)