Overview radio button
This commit is contained in:
@@ -117,6 +117,7 @@
|
||||
"previz": "Project in preparation"
|
||||
},
|
||||
"new": "New Project",
|
||||
"overview": "Overview",
|
||||
"plural": "Projects",
|
||||
"single": "Project",
|
||||
"start": "Start",
|
||||
|
||||
@@ -117,6 +117,7 @@
|
||||
"previz": "Proyecto en preparación"
|
||||
},
|
||||
"new": "Nuevo proyecto",
|
||||
"overview": "Vista general",
|
||||
"plural": "Proyectos",
|
||||
"single": "Proyecto",
|
||||
"start": "Inicio",
|
||||
|
||||
@@ -117,6 +117,7 @@
|
||||
"previz": "Projet en cours de préparation"
|
||||
},
|
||||
"new": "Nouveau projet",
|
||||
"overview": "Vue d'ensemble",
|
||||
"plural": "Projets",
|
||||
"single": "Projet",
|
||||
"start": "Départ",
|
||||
|
||||
@@ -54,6 +54,12 @@ export default {
|
||||
this.feedPanelOpen?'with-feed':'',
|
||||
this.settingsPanelOpen?'with-settings':''
|
||||
].filter(n => n).join(' ');
|
||||
},
|
||||
projectOptions() {
|
||||
return [
|
||||
{id: 'overview', codename: '', name: this.lang.get('project.overview')},
|
||||
...Object.values(this.projects)
|
||||
];
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
@@ -633,11 +639,11 @@ export default {
|
||||
<div class="settings-section">
|
||||
<h1><SpotIcon :icon="'project'" width="fixed" :text="lang.get('project.hikes')" /></h1>
|
||||
<div class="settings-section-body">
|
||||
<div class="radio" v-for="project in projects" :key="'project-'+project.id">
|
||||
<div class="radio" v-for="project in projectOptions" :key="'project-'+project.id">
|
||||
<input type="radio" :id="'project-'+project.id" :value="project.codename" v-model="$parent.hash.items[0]" />
|
||||
<label :for="'project-'+project.id">
|
||||
<span>{{ project.name }}</span>
|
||||
<a class="download" :href="project.gpxfilepath" :download="project.codename + '.gpx'" :title="lang.get('track.download')" @click.stop="()=>{}">
|
||||
<a v-if="project.gpxfilepath" class="download" :href="project.gpxfilepath" :download="project.codename + '.gpx'" :title="lang.get('track.download')" @click.stop="()=>{}">
|
||||
<SpotIcon :icon="'download'" margin="left" />
|
||||
</a>
|
||||
</label>
|
||||
|
||||
Reference in New Issue
Block a user