fix type
This commit is contained in:
		
							parent
							
								
									f4b981cefe
								
							
						
					
					
						commit
						0f7cbb5922
					
				
					 2 changed files with 2 additions and 21 deletions
				
			
		|  | @ -16,10 +16,6 @@ export const meta = { | ||||||
| 				type: 'boolean', | 				type: 'boolean', | ||||||
| 				optional: false, nullable: false, | 				optional: false, nullable: false, | ||||||
| 			}, | 			}, | ||||||
| 			isWatching: { |  | ||||||
| 				type: 'boolean', |  | ||||||
| 				optional: false, nullable: false, |  | ||||||
| 			}, |  | ||||||
| 			isMutedThread: { | 			isMutedThread: { | ||||||
| 				type: 'boolean', | 				type: 'boolean', | ||||||
| 				optional: false, nullable: false, | 				optional: false, nullable: false, | ||||||
|  |  | ||||||
|  | @ -60,12 +60,6 @@ export function getNoteMenu(props: { | ||||||
| 		}); | 		}); | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	function toggleWatch(watch: boolean): void { |  | ||||||
| 		os.apiWithDialog(watch ? 'notes/watching/create' : 'notes/watching/delete', { |  | ||||||
| 			noteId: appearNote.id, |  | ||||||
| 		}); |  | ||||||
| 	} |  | ||||||
| 
 |  | ||||||
| 	function toggleThreadMute(mute: boolean): void { | 	function toggleThreadMute(mute: boolean): void { | ||||||
| 		os.apiWithDialog(mute ? 'notes/thread-muting/create' : 'notes/thread-muting/delete', { | 		os.apiWithDialog(mute ? 'notes/thread-muting/create' : 'notes/thread-muting/delete', { | ||||||
| 			noteId: appearNote.id, | 			noteId: appearNote.id, | ||||||
|  | @ -245,15 +239,6 @@ export function getNoteMenu(props: { | ||||||
| 				text: i18n.ts.clip, | 				text: i18n.ts.clip, | ||||||
| 				action: () => clip(), | 				action: () => clip(), | ||||||
| 			}, | 			}, | ||||||
| 			(appearNote.userId !== $i.id) ? statePromise.then(state => state.isWatching ? { |  | ||||||
| 				icon: 'fas fa-eye-slash', |  | ||||||
| 				text: i18n.ts.unwatch, |  | ||||||
| 				action: () => toggleWatch(false), |  | ||||||
| 			} : { |  | ||||||
| 				icon: 'fas fa-eye', |  | ||||||
| 				text: i18n.ts.watch, |  | ||||||
| 				action: () => toggleWatch(true), |  | ||||||
| 			}) : undefined, |  | ||||||
| 			statePromise.then(state => state.isMutedThread ? { | 			statePromise.then(state => state.isMutedThread ? { | ||||||
| 				icon: 'fas fa-comment-slash', | 				icon: 'fas fa-comment-slash', | ||||||
| 				text: i18n.ts.unmuteThread, | 				text: i18n.ts.unmuteThread, | ||||||
|  | @ -312,7 +297,7 @@ export function getNoteMenu(props: { | ||||||
| 				}] | 				}] | ||||||
| 			: [] | 			: [] | ||||||
| 			)] | 			)] | ||||||
| 		.filter(x => x !== undefined); | 			.filter(x => x !== undefined); | ||||||
| 	} else { | 	} else { | ||||||
| 		menu = [{ | 		menu = [{ | ||||||
| 			icon: 'fas fa-copy', | 			icon: 'fas fa-copy', | ||||||
|  | @ -329,7 +314,7 @@ export function getNoteMenu(props: { | ||||||
| 				window.open(appearNote.url || appearNote.uri, '_blank'); | 				window.open(appearNote.url || appearNote.uri, '_blank'); | ||||||
| 			}, | 			}, | ||||||
| 		} : undefined] | 		} : undefined] | ||||||
| 		.filter(x => x !== undefined); | 			.filter(x => x !== undefined); | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	if (noteActions.length > 0) { | 	if (noteActions.length > 0) { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue