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