wip
This commit is contained in:
		@@ -612,10 +612,11 @@ export default defineComponent({
 | 
				
			|||||||
		},
 | 
							},
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		async insertEmoji(ev) {
 | 
							async insertEmoji(ev) {
 | 
				
			||||||
			os.modal(defineAsyncComponent(() => import('@/components/emoji-picker.vue')), {}, emoji => {
 | 
								os.modal(defineAsyncComponent(() => import('@/components/emoji-picker.vue')), {}, {}, {
 | 
				
			||||||
				insertTextAtCursor(this.$refs.text, emoji);
 | 
					 | 
				
			||||||
			}, {
 | 
					 | 
				
			||||||
				source: ev.currentTarget || ev.target
 | 
									source: ev.currentTarget || ev.target
 | 
				
			||||||
 | 
								}).then(emoji => {
 | 
				
			||||||
 | 
									if (emoji == null) return;
 | 
				
			||||||
 | 
									insertTextAtCursor(this.$refs.text, emoji);
 | 
				
			||||||
			});
 | 
								});
 | 
				
			||||||
		},
 | 
							},
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -222,11 +222,11 @@ export default defineComponent({
 | 
				
			|||||||
		},
 | 
							},
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		async insertEmoji(ev) {
 | 
							async insertEmoji(ev) {
 | 
				
			||||||
			const vm = os.modal(await import('@/components/emoji-picker.vue'), {
 | 
								os.modal(await import('@/components/emoji-picker.vue'), {}, {}, {
 | 
				
			||||||
				source: ev.currentTarget || ev.target
 | 
									source: ev.currentTarget || ev.target
 | 
				
			||||||
			}).$once('chosen', emoji => {
 | 
								}).then(emoji => {
 | 
				
			||||||
 | 
									if (emoji == null) return;
 | 
				
			||||||
				insertTextAtCursor(this.$refs.text, emoji);
 | 
									insertTextAtCursor(this.$refs.text, emoji);
 | 
				
			||||||
				vm.close();
 | 
					 | 
				
			||||||
			});
 | 
								});
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -70,8 +70,7 @@ export default defineComponent({
 | 
				
			|||||||
		},
 | 
							},
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		async chooseEmoji(ev) {
 | 
							async chooseEmoji(ev) {
 | 
				
			||||||
			os.modal(await import('@/components/emoji-picker.vue'), {
 | 
								os.modal(await import('@/components/emoji-picker.vue'), {}, {}, {
 | 
				
			||||||
			}, {}, {
 | 
					 | 
				
			||||||
				source: ev.currentTarget || ev.target
 | 
									source: ev.currentTarget || ev.target
 | 
				
			||||||
			}).then(emoji => {
 | 
								}).then(emoji => {
 | 
				
			||||||
				if (emoji == null) return;
 | 
									if (emoji == null) return;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user