This commit is contained in:
syuilo 2020-09-05 01:27:02 +09:00
parent 1a7a07cb1a
commit c49e5a80be
23 changed files with 42 additions and 42 deletions

View file

@ -25,7 +25,7 @@ export default defineComponent({
},
methods: {
async generateToken() {
this.$root.new(await import('../../components/token-generate-window.vue').then(m => m.default), {
this.$root.new(await import('../../components/token-generate-window.vue'), {
}).$on('ok', async ({ name, permissions }) => {
const { token } = await this.$root.api('miauth/gen-token', {
session: null,

View file

@ -113,7 +113,7 @@ export default defineComponent({
},
async configure() {
this.$root.new(await import('../../components/notification-setting-window.vue').then(m => m.default), {
this.$root.new(await import('../../components/notification-setting-window.vue'), {
includingTypes: this.$store.state.i.includingNotificationTypes,
showGlobalToggle: false,
}).$on('ok', async ({ includingTypes: value }: any) => {

View file

@ -72,7 +72,7 @@ export default defineComponent({
},
async chooseEmoji(ev) {
const vm = this.$root.new(await import('../../components/emoji-picker.vue').then(m => m.default), {
const vm = this.$root.new(await import('../../components/emoji-picker.vue'), {
source: ev.currentTarget || ev.target
}).$once('chosen', emoji => {
this.reactions += emoji;