a few more fixes to os.popup calls
				
					
				
			This commit is contained in:
		
							parent
							
								
									99a0765eaf
								
							
						
					
					
						commit
						c2b825b300
					
				
					 4 changed files with 14 additions and 8 deletions
				
			
		| 
						 | 
				
			
			@ -455,12 +455,14 @@ if (!props.mock) {
 | 
			
		|||
 | 
			
		||||
		if (users.length < 1) return;
 | 
			
		||||
 | 
			
		||||
		os.popup(MkUsersTooltip, {
 | 
			
		||||
		const { dispose } = os.popup(MkUsersTooltip, {
 | 
			
		||||
			showing,
 | 
			
		||||
			users,
 | 
			
		||||
			count: appearNote.value.renoteCount,
 | 
			
		||||
			targetElement: quoteButton.value,
 | 
			
		||||
		}, {}, 'closed');
 | 
			
		||||
		}, {
 | 
			
		||||
			closed: () => dispose(),
 | 
			
		||||
		});
 | 
			
		||||
	});
 | 
			
		||||
 | 
			
		||||
	if ($i) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -455,12 +455,14 @@ if (!props.mock) {
 | 
			
		|||
 | 
			
		||||
		if (users.length < 1) return;
 | 
			
		||||
 | 
			
		||||
		os.popup(MkUsersTooltip, {
 | 
			
		||||
		const { dispose } = os.popup(MkUsersTooltip, {
 | 
			
		||||
			showing,
 | 
			
		||||
			users,
 | 
			
		||||
			count: appearNote.value.renoteCount,
 | 
			
		||||
			targetElement: quoteButton.value,
 | 
			
		||||
		}, {}, 'closed');
 | 
			
		||||
		}, {
 | 
			
		||||
			closed: () => dispose(),
 | 
			
		||||
		});
 | 
			
		||||
	});
 | 
			
		||||
 | 
			
		||||
	if ($i) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -27,12 +27,13 @@ export async function getNoteVersionsMenu(props: {
 | 
			
		|||
	const cleanups = [] as (() => void)[];
 | 
			
		||||
 | 
			
		||||
	function openVersion(info): void {
 | 
			
		||||
		os.popup(defineAsyncComponent(() => import('@/components/SkOldNoteWindow.vue')), {
 | 
			
		||||
		const { dispose } = os.popup(defineAsyncComponent(() => import('@/components/SkOldNoteWindow.vue')), {
 | 
			
		||||
			note: appearNote,
 | 
			
		||||
			oldText: info.text,
 | 
			
		||||
			updatedAt: info.oldDate ? info.oldDate : info.updatedAt,
 | 
			
		||||
		}, {
 | 
			
		||||
		}, 'closed');
 | 
			
		||||
			closed: () => dispose(),
 | 
			
		||||
		});
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	const menu: MenuItem[] = [];
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -143,11 +143,12 @@ async function search() {
 | 
			
		|||
 | 
			
		||||
	key.value++;
 | 
			
		||||
 | 
			
		||||
	os.popup(defineAsyncComponent(() => import('@/components/SkSearchResultWindow.vue')), {
 | 
			
		||||
	const { dispose } = os.popup(defineAsyncComponent(() => import('@/components/SkSearchResultWindow.vue')), {
 | 
			
		||||
		noteKey: key.value,
 | 
			
		||||
		notePagination: notePagination.value,
 | 
			
		||||
	}, {
 | 
			
		||||
	}, 'closed');
 | 
			
		||||
		closed: () => dispose(),
 | 
			
		||||
	});
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
defineExpose<WidgetComponentExpose>({
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue