Skip to content

Commit

Permalink
Mergeable - Book Del-Add-Edit TODO-Authors&Genres
Browse files Browse the repository at this point in the history
  • Loading branch information
alv67 committed Jul 30, 2021
1 parent 9bc6caa commit 72345de
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions client/src/routes/books.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
}
function deleteBook(book) {
const path = `${apiPath}/${book.id}`;
const path = `${apiPath}/${book._id}`;
axios
.delete(path)
.then(() => {
Expand Down Expand Up @@ -217,9 +217,9 @@
</ModalBody>
<ModalFooter>
{#if updateopen}
<Button color="primary" on:click={updateBook}>Update author</Button>
<Button color="primary" on:click={updateBook}>Update Book</Button>
{:else}
<Button color="primary" on:click={addBook}>Add author</Button>
<Button color="primary" on:click={addBook}>Add Book</Button>
{/if}
<Button color="secondary" on:click={closeDialog}>Cancel</Button>
</ModalFooter>
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
version: '3'

services:
# static-pages:
# build: client
static-pages:
build: client
server:
build: .
# restart: always
Expand Down

0 comments on commit 72345de

Please sign in to comment.