Skip to content

Commit

Permalink
updates to the gitignore and readme, minor code changes to the Books …
Browse files Browse the repository at this point in the history
…component
  • Loading branch information
mjhea0 committed Jun 7, 2018
1 parent 9789167 commit 0745306
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
node_modules/
/dist/
env/
__pycache__
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ Check out the [post](https://testdriven.io/developing-a-single-page-app-with-fla
$ cd server
$ python3.6 -m venv env
$ source env/bin/activate
$ pip install -r requirements.txt
(env)$ pip install -r requirements.txt
(env)$ python app.py
```

Navigate to [http://localhost:5000](http://localhost:5000)
4 changes: 2 additions & 2 deletions client/src/components/Books.vue
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ import Alert from './Alert';
export default {
data() {
return {
headers: ['title', 'author', 'read', 'actions'],
books: [],
addBookForm: {
title: '',
Expand Down Expand Up @@ -203,7 +202,7 @@ export default {
this.editForm.id = '';
this.editForm.title = '';
this.editForm.author = '';
this.editForm.read = '';
this.editForm.read = [];
},
onSubmit(evt) {
evt.preventDefault();
Expand Down Expand Up @@ -239,6 +238,7 @@ export default {
evt.preventDefault();
this.$refs.editBookModal.hide();
this.initForm();
this.getBooks(); // why?
},
onDeleteBook(book) {
this.removeBook(book.id);
Expand Down

0 comments on commit 0745306

Please sign in to comment.