refs #673 Add settings page for each accounts
This commit is contained in:
parent
ff05d530e1
commit
e5da09ef3d
|
@ -42,6 +42,7 @@
|
||||||
"profile": "Profile",
|
"profile": "Profile",
|
||||||
"show_profile": "Show profile",
|
"show_profile": "Show profile",
|
||||||
"edit_profile": "Edit profile",
|
"edit_profile": "Edit profile",
|
||||||
|
"settings": "Settings",
|
||||||
"collapse": "Collapse",
|
"collapse": "Collapse",
|
||||||
"expand": "Expand",
|
"expand": "Expand",
|
||||||
"home": "Home",
|
"home": "Home",
|
||||||
|
|
|
@ -0,0 +1,14 @@
|
||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
TODO
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: 'Settings'
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
</style>
|
|
@ -13,6 +13,7 @@
|
||||||
<el-dropdown-menu slot="dropdown">
|
<el-dropdown-menu slot="dropdown">
|
||||||
<el-dropdown-item command="show">{{ $t("side_menu.show_profile") }}</el-dropdown-item>
|
<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="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-menu>
|
||||||
</el-dropdown>
|
</el-dropdown>
|
||||||
</div>
|
</div>
|
||||||
|
@ -142,6 +143,10 @@ export default {
|
||||||
case 'edit':
|
case 'edit':
|
||||||
shell.openExternal(this.account.baseURL + '/settings/profile')
|
shell.openExternal(this.account.baseURL + '/settings/profile')
|
||||||
break
|
break
|
||||||
|
case 'settings':
|
||||||
|
const url = `/${this.id()}/settings`
|
||||||
|
this.$router.push(url)
|
||||||
|
break
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
doCollapse () {
|
doCollapse () {
|
||||||
|
@ -178,6 +183,11 @@ export default {
|
||||||
|
|
||||||
.el-dropdown-link {
|
.el-dropdown-link {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
color: #dcdfe6;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
color: #409eff;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.domain-name {
|
.domain-name {
|
||||||
|
|
|
@ -53,6 +53,10 @@ export default new Router({
|
||||||
name: 'global-header',
|
name: 'global-header',
|
||||||
component: require('@/components/GlobalHeader').default,
|
component: require('@/components/GlobalHeader').default,
|
||||||
children: [
|
children: [
|
||||||
|
{
|
||||||
|
path: ':id/settings',
|
||||||
|
component: require('@/components/Settings').default
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: ':id/',
|
path: ':id/',
|
||||||
name: 'timeline-space',
|
name: 'timeline-space',
|
||||||
|
|
Loading…
Reference in New Issue