diff --git a/front/src/AddBook.vue b/front/src/BookFormEdit.vue similarity index 100% rename from front/src/AddBook.vue rename to front/src/BookFormEdit.vue diff --git a/front/src/BookForm.vue b/front/src/BookFormView.vue similarity index 100% rename from front/src/BookForm.vue rename to front/src/BookFormView.vue diff --git a/front/src/router.js b/front/src/router.js index ab01ee7..036cdc9 100644 --- a/front/src/router.js +++ b/front/src/router.js @@ -1,9 +1,9 @@ import { createRouter, createWebHistory } from 'vue-router' import BooksBrowser from './BooksBrowser.vue' -import AddBook from './AddBook.vue' +import BookFormEdit from './BookFormEdit.vue' import AuthorForm from './AuthorForm.vue' -import BookForm from './BookForm.vue' +import BookFormView from './BookFormView.vue' import SignUp from './SignUp.vue' import LogIn from './LogIn.vue' import Home from './Home.vue' @@ -18,11 +18,11 @@ const routes = [ { path: '/scan', component: ScanBook }, { path: '/browse', component: InstanceBrowser }, { path: '/books', component: BooksBrowser }, - { path: '/book/:id', component: BookForm, props: true }, + { path: '/book/:id', component: BookFormView, props: true }, { path: '/author/:id', component: AuthorForm, props: true }, { path: '/search/:searchterm', component: SearchBook, props: true }, { path: '/import/inventaire/:inventaireid', component: ImportInventaire, props: true }, - { path: '/add', component: AddBook }, + { path: '/add', component: BookFormEdit }, { path: '/signup', component: SignUp }, { path: '/login', component: LogIn }, ]