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