fix [front]: fix admin links from index

This commit is contained in:
Alice 2022-05-29 22:03:12 +02:00
parent ca4db462be
commit bbe2aec159
2 changed files with 2 additions and 3 deletions

View file

@ -16,7 +16,6 @@ export default defineNuxtConfig({
], ],
link: [{ rel: "icon", type: "image/x-icon", href: "/favicon.ico" }], link: [{ rel: "icon", type: "image/x-icon", href: "/favicon.ico" }],
}, },
css: ["@/css/app.sass"], css: ["@/css/app.sass"],
buildModules: ["@pinia/nuxt"], buildModules: ["@pinia/nuxt"],
vite: { vite: {

View file

@ -2,12 +2,12 @@
<h1 class="title">Liste des séances</h1> <h1 class="title">Liste des séances</h1>
<ul class="list has-visible-pointer-controls"> <ul class="list has-visible-pointer-controls">
<li v-for="film of films" :key="film.id" class="list-item"> <li v-for="film of films" :key="film.id" class="list-item">
<nuxt-link :to="`${film.id}`" class="list-item-content"> <nuxt-link :to="`admin/${film.id}`" class="list-item-content">
{{ film.projectionDate || "À planifier" }} - {{ film.title }} {{ film.projectionDate || "À planifier" }} - {{ film.title }}
<template v-if="film.director"> de {{ film.director }}</template> <template v-if="film.director"> de {{ film.director }}</template>
</nuxt-link> </nuxt-link>
<div class="list-item-controls"> <div class="list-item-controls">
<nuxt-link :to="`${film.id}/edition`" class="button"> <nuxt-link :to="`admin/${film.id}/edition`" class="button">
<span>Éditer</span> <span>Éditer</span>
</nuxt-link> </nuxt-link>
</div> </div>