user: move user settings to navbar user dropdown
This commit is contained in:
parent
05b338c9bc
commit
972da7d7d3
12
src/App.vue
12
src/App.vue
|
@ -77,6 +77,15 @@
|
|||
<li>
|
||||
<hr class="navbar-divider">
|
||||
</li>
|
||||
<li>
|
||||
<router-link
|
||||
class="block px-4 py-2 hover:bg-blue-500 hover:text-white"
|
||||
:to="ownerSettingsLink('user', user.username)"
|
||||
>
|
||||
<i class="mr-1 mdi mdi-settings"/>
|
||||
<span>User Settings</span>
|
||||
</router-link>
|
||||
</li>
|
||||
<li>
|
||||
<router-link
|
||||
class="block px-4 py-2 hover:bg-blue-500 hover:text-white"
|
||||
|
@ -122,6 +131,8 @@ import vClickOutside from "v-click-outside";
|
|||
|
||||
import { mapGetters } from "vuex";
|
||||
|
||||
import { ownerSettingsLink } from "@/util/link.js";
|
||||
|
||||
export default {
|
||||
name: "App",
|
||||
directives: {
|
||||
|
@ -155,6 +166,7 @@ export default {
|
|||
},
|
||||
// method to reload current view from https://github.com/vuejs/vue-router/issues/296#issuecomment-356530037
|
||||
methods: {
|
||||
ownerSettingsLink: ownerSettingsLink,
|
||||
reload() {
|
||||
this.$store.dispatch("setError", null);
|
||||
this.routerActive = false;
|
||||
|
|
|
@ -121,15 +121,6 @@
|
|||
<span>Root Project Group Settings</span>
|
||||
</router-link>
|
||||
</li>
|
||||
<li>
|
||||
<router-link
|
||||
class="block px-4 py-2 hover:bg-blue-500 hover:text-white"
|
||||
:to="ownerSettingsLink('user', username)"
|
||||
>
|
||||
<i class="mr-1 mdi mdi-settings"/>
|
||||
<span>User Settings</span>
|
||||
</router-link>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue