Skip to content
This repository was archived by the owner on Aug 27, 2018. It is now read-only.

Commit 148167c

Browse files
committed
Fix delete post dialog
1 parent b03e69e commit 148167c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

3-panel/src/views/Pages/Posts/components/PostDialog/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -365,11 +365,11 @@ export default class PostDialog extends Component {
365365
postsPage.postsData[index].media = media
366366
} else {
367367
const postData = {
368-
id: 9,
368+
id: 11,
369369
media: 'http://img11.deviantart.net/a66d/i/2015/109/3/b/forest_wallpaper_16_9_by_iorgudesign-d8qa67w.jpg',
370-
title: 'Test',
370+
title: title,
371371
author: 'Mikołaj Palkiewicz',
372-
content: 'Card with picture test',
372+
content: content,
373373
date: '14.04.2017 10:38',
374374
avatar: 'https://scontent-waw1-1.xx.fbcdn.net/v/t1.0-9/14581320_549947718524540_5437545186607783553_n.jpg?oh=1d709d8978f80d6887041c3e9583f27f&oe=59994281',
375375
likes: [],

3-panel/src/views/Pages/Posts/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ export default class PostsPage extends Component {
455455
onDeletePostDialogConfirmClick = (e) => {
456456
const app = window.app
457457
const dialog = app.elements.deletePostDialog
458-
const snackbar = app.elements.deletedPostSnackbar
458+
const snackbar = app.elements.deletePostSnackbar
459459
const snackbarRoot = snackbar.getRoot()
460460

461461
this.toggleCheckBoxes(false)

0 commit comments

Comments
 (0)