Skip to content

Commit

Permalink
add db edit link to person data
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucaterre committed Feb 5, 2024
1 parent bbe4bda commit ff38f18
Show file tree
Hide file tree
Showing 8 changed files with 158 additions and 87,691 deletions.
2 changes: 1 addition & 1 deletion src/components/AppMenuAside.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export default {
navigateToFacSimile() {
this.$store.commit('setEndpVolume', "collection");
this.$store.commit('setCanvasId', "top");
this.$router.push(`/facsimile/collection/top`);
this.$router.push('/facsimile/collection/top');
},
},
}
Expand Down
13 changes: 8 additions & 5 deletions src/components/RegisterCardNavigation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
<tbody>
<tr v-if="facSimile">
<td><span class="icon book-icon-card"><i class="fas fa-book-open"></i></span></td>
<td><router-link :to="`/facsimile/${volume}/${firstCanvasID}`" @click="navigateToFacSimile">{{ firstPage }}</router-link></td>
<td><router-link :to="`/facsimile/${volume}/${lastCanvasID}`" @click="navigateToFacSimile">{{ lastPage }}</router-link></td>
<td><router-link :to="`/facsimile/${volume}/${firstCanvasID}`" @click="navigateToFacSimile(firstCanvasID, volume, yearFirstPage)">{{ firstPage }}</router-link></td>
<td><router-link :to="`/facsimile/${volume}/${lastCanvasID}`" @click="navigateToFacSimile(lastCanvasID, volume, yearLastPage)">{{ lastPage }}</router-link></td>
</tr>
<tr v-if="isEdited">
<td><span class="icon book-icon-card"><i class="fas fa-book"></i></span></td>
Expand Down Expand Up @@ -72,6 +72,8 @@ export default {
isEdited: Boolean,
facSimile: Boolean,
defaultCanvasID: Number,
yearFirstPage:String,
yearLastPage:String,
},
data() {
return {
Expand All @@ -83,9 +85,10 @@ export default {
* Navigate to facsimile page
* @return {void}
*/
navigateToFacSimile() {
this.$store.commit('setCanvasId', this.firstCanvasID);
this.$store.commit('setEndpVolume', this.volume);
navigateToFacSimile(canvas, volume, year) {
this.$store.commit('setCanvasId', canvas);
this.$store.commit('setEndpVolume', volume);
this.$store.commit('setYear', year);
},
/**
* Toggle content of card
Expand Down
Loading

0 comments on commit ff38f18

Please sign in to comment.