layout: tabbar scrollable in profile
This commit is contained in:
parent
2fe73aebc9
commit
a96e1693ed
11
.idea/modules.xml
generated
11
.idea/modules.xml
generated
@ -1,11 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project version="4">
|
|
||||||
<component name="ProjectModuleManager">
|
|
||||||
<modules>
|
|
||||||
<module fileurl="file://$PROJECT_DIR$/.idea/labswp_2019_sose_geocaching.iml" filepath="$PROJECT_DIR$/.idea/labswp_2019_sose_geocaching.iml" />
|
|
||||||
<module fileurl="file://$PROJECT_DIR$/.idea/modules/labswp_2019_sose_geocaching.iml" filepath="$PROJECT_DIR$/.idea/modules/labswp_2019_sose_geocaching.iml" />
|
|
||||||
<module fileurl="file://$PROJECT_DIR$/.idea/modules/labswp_2019_sose_geocaching.main.iml" filepath="$PROJECT_DIR$/.idea/modules/labswp_2019_sose_geocaching.main.iml" />
|
|
||||||
<module fileurl="file://$PROJECT_DIR$/.idea/modules/labswp_2019_sose_geocaching.test.iml" filepath="$PROJECT_DIR$/.idea/modules/labswp_2019_sose_geocaching.test.iml" />
|
|
||||||
</modules>
|
|
||||||
</component>
|
|
||||||
</project>
|
|
||||||
@ -1,20 +1,20 @@
|
|||||||
<template>
|
<template>
|
||||||
<q-page class="column">
|
<q-page class="column no-wrap">
|
||||||
<div class="bg-red col col-shrink" style="">
|
<div class="bg-red col col-shrink" style="">
|
||||||
<q-tabs
|
<q-tabs
|
||||||
v-model="tab"
|
v-model="tab"
|
||||||
class="bg-grey-2"
|
class="bg-grey-2"
|
||||||
inline-label
|
inline-label
|
||||||
align="justify"
|
align="justify"
|
||||||
active-bg-color="bg-grey-1"
|
active-bg-color="bg-grey-1"
|
||||||
active-color="cyan-14"
|
active-color="cyan-14"
|
||||||
indicator-color="cyan-14"
|
indicator-color="cyan-14"
|
||||||
switch-indicator
|
switch-indicator
|
||||||
>
|
>
|
||||||
<q-tab name="profile" label="Profil" icon="perm_identity"/>
|
<q-tab name="profile" label="Profil" icon="perm_identity"/>
|
||||||
<q-tab name="startedCaches" label="Angefangene Caches" icon="playlist_play"/>
|
<q-tab name="startedCaches" label="Angefangene Caches" icon="playlist_play"/>
|
||||||
<q-tab name="finishedCaches" label="Beendete Caches" icon="playlist_add_check"/>
|
<q-tab name="finishedCaches" label="Beendete Caches" icon="playlist_add_check"/>
|
||||||
</q-tabs>
|
</q-tabs>
|
||||||
<q-separator color="grey-4"/>
|
<q-separator color="grey-4"/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -129,23 +129,7 @@
|
|||||||
this.startedCaches = response.data;
|
this.startedCaches = response.data;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
startCache(cacheID) {
|
continueCache(cacheID) {
|
||||||
const userToken = JSON.parse(localStorage.getItem('userToken'));
|
|
||||||
let params = {cacheID: cacheID};
|
|
||||||
if (userToken != null) {
|
|
||||||
params.token = userToken;
|
|
||||||
}
|
|
||||||
console.log(params);
|
|
||||||
|
|
||||||
this.$axios.get('http://localhost:8080/api/startCache', {params})
|
|
||||||
.then((response) => {
|
|
||||||
console.log(response.data);
|
|
||||||
// TODO wenn cache angefangen, dann suche die letzte gefundene Station
|
|
||||||
let stationID = this.caches.find(x => x.id === cacheID).stationen[0].id;
|
|
||||||
console.log(stationID);
|
|
||||||
//this.$router.push({path: `/station/${stationID}`})
|
|
||||||
this.$router.push({path: `/station/${cacheID}/${stationID}`})
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user