mirror of
https://gitlab.com/mildlyparallel/trashcan.git
synced 2023-04-08 19:00:19 +03:00
fix back button
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -7,3 +7,4 @@ storage
|
||||
trash.dblite
|
||||
tika-app.jar
|
||||
*.tar.gz
|
||||
*.local
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<v-toolbar dark dense class="fixed-bar" color="blue-grey darken-2">
|
||||
<template v-if="title">
|
||||
|
||||
<v-btn icon @click="goHome()">
|
||||
<v-btn icon @click="goBack()">
|
||||
<v-icon>mdi-arrow-left</v-icon>
|
||||
</v-btn>
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
</template>
|
||||
<template v-else>
|
||||
|
||||
<v-btn icon @click="goBack()">
|
||||
<v-btn icon @click="goHome()">
|
||||
<v-icon>mdi-trash-can</v-icon>
|
||||
</v-btn>
|
||||
|
||||
@@ -98,7 +98,10 @@ export default {
|
||||
},
|
||||
|
||||
goHome: function() {
|
||||
this.$router.push({ path: '/' });
|
||||
if (this.$route.path == '/' && !Object.keys(this.$route.query).length)
|
||||
return;
|
||||
|
||||
this.$router.push({ path: '/', query: {} });
|
||||
},
|
||||
|
||||
onMenuClicked: function(path) {
|
||||
|
||||
@@ -98,7 +98,7 @@
|
||||
</v-row>
|
||||
<v-row>
|
||||
<v-col>
|
||||
<vue-editor v-model="paper.notes" :editorToolbar="notesToolbar" style="color:black"></vue-editor>
|
||||
<vue-editor v-model="paper.notes" placeholder="Notes" :editorToolbar="notesToolbar" style="color:black"></vue-editor>
|
||||
</v-col>
|
||||
</v-row>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user