Improve client
This commit is contained in:
parent
c968633d15
commit
65858dab3e
39 changed files with 286 additions and 83 deletions
|
|
@ -31,7 +31,7 @@
|
|||
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue';
|
||||
import { modalMenu } from '@client/os';
|
||||
import { popupMenu } from '@client/os';
|
||||
import { url } from '@client/config';
|
||||
|
||||
export default defineComponent({
|
||||
|
|
@ -121,7 +121,7 @@ export default defineComponent({
|
|||
if (menu.length > 0) menu.push(null);
|
||||
menu = menu.concat(this.menu);
|
||||
}
|
||||
modalMenu(menu, ev.currentTarget || ev.target);
|
||||
popupMenu(menu, ev.currentTarget || ev.target);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
|||
|
|
@ -150,7 +150,7 @@ export default defineComponent({
|
|||
});
|
||||
}));
|
||||
|
||||
os.modalMenu([...[{
|
||||
os.popupMenu([...[{
|
||||
type: 'link',
|
||||
text: this.$ts.profile,
|
||||
to: `/@${ this.$i.username }`,
|
||||
|
|
@ -159,7 +159,7 @@ export default defineComponent({
|
|||
icon: 'fas fa-plus',
|
||||
text: this.$ts.addAccount,
|
||||
action: () => {
|
||||
os.modalMenu([{
|
||||
os.popupMenu([{
|
||||
text: this.$ts.existingAccount,
|
||||
action: () => { this.addAccount(); },
|
||||
}, {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue