Fix back button
All checks were successful
Deploy Spot / deploy (push) Successful in 36s

This commit is contained in:
2026-06-02 11:22:28 +02:00
parent 9ce25e73f0
commit 87a991eaea
5 changed files with 34 additions and 18 deletions

View File

@@ -10,7 +10,7 @@ import SpotButton from '@components/spotButton';
export default {
name: 'upload',
components: { SpotButton, SpotIcon },
inject: ['api', 'lang', 'projects', 'consts', 'user'],
inject: ['api', 'lang', 'projects', 'consts', 'user', 'getPrevAnchor'],
data() {
return {
project: this.projects.getDefaultProject(),
@@ -120,7 +120,7 @@ export default {
<template>
<div id="upload">
<div class="section header">
<a name="back" class="button" href="#project"><SpotIcon :icon="'back'" :text="lang.get('action.back')" /></a>
<a name="back" class="button" :href="getPrevAnchor()"><SpotIcon :icon="'back'" :text="lang.get('action.back')" /></a>
<h1>{{ this.project.name }}</h1>
</div>
<div class="section" v-if="project.editable">