Initial changes to how trying to comment on a deleted post is handled

Этот коммит содержится в:
Reed Garmsen
2015-09-25 14:33:27 -07:00
родитель cbe1ab8dba
Коммит 16cee7f070
2 изменённых файлов: 35 добавлений и 2 удалений

Просмотреть файл

@@ -71,6 +71,13 @@ export default class RhsThread extends React.Component {
return;
}
if (!currentSelected.posts[currentSelected.order[0]]) {
if ($('#post_deleted').length > 0) {
$('#post_deleted').modal('show');
return;
}
}
var currentPosts = PostStore.getPosts(currentSelected.posts[currentSelected.order[0]].channel_id);
if (!currentPosts || currentPosts.order.length === 0) {