mirror of
https://github.com/h3poteto/whalebird-desktop
synced 2025-02-04 19:27:34 +01:00
refs #48 Add new account button in global header
This commit is contained in:
parent
fefa03b50e
commit
2b3d8c7c1d
@ -14,6 +14,10 @@
|
||||
<i class="el-icon-menu"></i>
|
||||
<span slot="title">{{ account.domain }}</span>
|
||||
</el-menu-item>
|
||||
<el-menu-item index="/login" @click="login">
|
||||
<i class="el-icon-plus"></i>
|
||||
<span slot="new">New</span>
|
||||
</el-menu-item>
|
||||
</el-menu>
|
||||
<div class="space">
|
||||
<router-view></router-view>
|
||||
@ -60,6 +64,9 @@ export default {
|
||||
},
|
||||
accountClosed (key, keyPath) {
|
||||
console.log(key, keyPath)
|
||||
},
|
||||
login () {
|
||||
return this.$router.push({ path: '/login' })
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -124,9 +124,9 @@ const TimelineSpace = {
|
||||
})
|
||||
},
|
||||
stopUserStreaming ({ commit }) {
|
||||
ipcRenderer.removeAll('update-start-user-streaming')
|
||||
ipcRenderer.removeAll('notification-start-user-streaming')
|
||||
ipcRenderer.removeAll('error-start-user-streaming')
|
||||
ipcRenderer.removeAllListeners('update-start-user-streaming')
|
||||
ipcRenderer.removeAllListeners('notification-start-user-streaming')
|
||||
ipcRenderer.removeAllListeners('error-start-user-streaming')
|
||||
ipcRenderer.send('stop-user-streaming')
|
||||
},
|
||||
watchShortcutEvents ({ commit }) {
|
||||
@ -139,8 +139,8 @@ const TimelineSpace = {
|
||||
})
|
||||
},
|
||||
removeShortcutEvents () {
|
||||
ipcRenderer.removeAll('CmdOrCtrl+N')
|
||||
ipcRenderer.removeAll('CmdOrCtrl+R')
|
||||
ipcRenderer.removeAllListeners('CmdOrCtrl+N')
|
||||
ipcRenderer.removeAllListeners('CmdOrCtrl+R')
|
||||
},
|
||||
fetchHomeTimeline ({ commit }, account) {
|
||||
return new Promise((resolve, reject) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user