Commit 41770ad5 authored by Ray Schamp's avatar Ray Schamp

Merge pull request #94 from thisandagain/bugfix/messages

Fix messages XHR request and prop defaults
parents 0e515c14 9ed814cb
......@@ -11,7 +11,9 @@ var AdminPanel = React.createClass({
Session
],
getInitialState: function () {
return {showPanel: true};
return {
showPanel: false
};
},
handleToggleVisibility: function (e) {
e.preventDefault();
......
......@@ -2,48 +2,49 @@
{
"id": 1,
"type": "project",
"title": "Example Project",
"thumbnailUrl": "http://www.lorempixel.com/144/108/",
"creator": "raimondious",
"href": "/projects/1000/"
"title": "Project",
"thumbnailUrl": "",
"creator": "",
"href": "#"
},
{
"id": 2,
"type": "project",
"title": "Example Project",
"thumbnailUrl": "http://www.lorempixel.com/144/108/",
"href": "/projects/1000/"
"title": "Project",
"thumbnailUrl": "",
"creator": "",
"href": "#"
},
{
"id": 3,
"type": "project",
"title": "Example Project",
"thumbnailUrl": "http://www.lorempixel.com/144/108/",
"creator": "raimondious",
"href": "/projects/1000/"
"title": "Project",
"thumbnailUrl": "",
"creator": "",
"href": "#"
},
{
"id": 4,
"type": "project",
"title": "Example Project",
"thumbnailUrl": "http://www.lorempixel.com/144/108/",
"creator": "raimondious",
"href": "/projects/1000/"
"title": "Project",
"thumbnailUrl": "",
"creator": "",
"href": "#"
},
{
"id": 5,
"type": "project",
"title": "Example Project",
"thumbnailUrl": "http://www.lorempixel.com/144/108/",
"creator": "raimondious",
"href": "/projects/1000/"
"title": "Project",
"thumbnailUrl": "",
"creator": "",
"href": "#"
},
{
"id": 6,
"type": "project",
"title": "Example Project",
"thumbnailUrl": "http://www.lorempixel.com/144/108/",
"creator": "raimondious",
"href": "/projects/1000/"
"title": "Project",
"thumbnailUrl": "",
"creator": "",
"href": "#"
}
]
......@@ -82,7 +82,6 @@ var Navigation = React.createClass({
getMessageCount: function () {
this.api({
method: 'get',
host: '',
uri: '/proxy/users/' + this.state.session.user.username + '/activity/count'
}, function (err, body) {
if (body) {
......
......@@ -10,9 +10,9 @@ var Thumbnail = React.createClass({
},
getDefaultProps: function () {
return {
href: '/projects/1000/',
title: 'Example Project',
src: 'http://www.lorempixel.com/144/108/',
href: '#',
title: 'Project',
src: '',
type: 'project',
showLoves: false,
showRemixes: false
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment