mirror of
https://github.com/misskey-dev/misskey
synced 2024-12-12 21:59:02 +09:00
🎨
This commit is contained in:
parent
44f7c13ad4
commit
55bdf0d618
@ -348,7 +348,7 @@ export default Vue.extend({
|
|||||||
const accountItems = accounts.map(account => ({
|
const accountItems = accounts.map(account => ({
|
||||||
type: 'user',
|
type: 'user',
|
||||||
user: account,
|
user: account,
|
||||||
action: () => { this.switchAccount(account) }
|
action: () => { this.switchAccount(account); }
|
||||||
}));
|
}));
|
||||||
|
|
||||||
this.$root.menu({
|
this.$root.menu({
|
||||||
@ -536,6 +536,11 @@ export default Vue.extend({
|
|||||||
},
|
},
|
||||||
|
|
||||||
switchAccountWithToken(token: string) {
|
switchAccountWithToken(token: string) {
|
||||||
|
this.$root.dialog({
|
||||||
|
type: 'waiting',
|
||||||
|
iconOnly: true
|
||||||
|
});
|
||||||
|
|
||||||
this.$root.api('i', {}, token).then((i: any) => {
|
this.$root.api('i', {}, token).then((i: any) => {
|
||||||
this.$store.dispatch('switchAccount', {
|
this.$store.dispatch('switchAccount', {
|
||||||
...i,
|
...i,
|
||||||
|
Loading…
Reference in New Issue
Block a user