refs #673 Add settings page for each accounts

This commit is contained in:
AkiraFukushima 2018-10-26 22:36:00 +09:00
parent ff05d530e1
commit e5da09ef3d
4 changed files with 29 additions and 0 deletions

View File

@ -42,6 +42,7 @@
"profile": "Profile",
"show_profile": "Show profile",
"edit_profile": "Edit profile",
"settings": "Settings",
"collapse": "Collapse",
"expand": "Expand",
"home": "Home",

View File

@ -0,0 +1,14 @@
<template>
<div>
TODO
</div>
</template>
<script>
export default {
name: 'Settings'
}
</script>
<style lang="scss" scoped>
</style>

View File

@ -13,6 +13,7 @@
<el-dropdown-menu slot="dropdown">
<el-dropdown-item command="show">{{ $t("side_menu.show_profile") }}</el-dropdown-item>
<el-dropdown-item command="edit">{{ $t("side_menu.edit_profile") }}</el-dropdown-item>
<el-dropdown-item command="settings">{{ $t("side_menu.settings") }}</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</div>
@ -142,6 +143,10 @@ export default {
case 'edit':
shell.openExternal(this.account.baseURL + '/settings/profile')
break
case 'settings':
const url = `/${this.id()}/settings`
this.$router.push(url)
break
}
},
doCollapse () {
@ -178,6 +183,11 @@ export default {
.el-dropdown-link {
cursor: pointer;
color: #dcdfe6;
&:hover {
color: #409eff;
}
}
.domain-name {

View File

@ -53,6 +53,10 @@ export default new Router({
name: 'global-header',
component: require('@/components/GlobalHeader').default,
children: [
{
path: ':id/settings',
component: require('@/components/Settings').default
},
{
path: ':id/',
name: 'timeline-space',