This commit is contained in:
		| @@ -68,6 +68,11 @@ export default Vue.extend({ | ||||
| 				icon: '%fa:i-cursor%', | ||||
| 				action: this.rename | ||||
| 			}, { | ||||
| 				type: 'item', | ||||
| 				text: this.file.isSensitive ? '%i18n:@contextmenu.unmark-as-sensitive%' : '%i18n:@contextmenu.mark-as-sensitive%', | ||||
| 				icon: this.file.isSensitive ? '%fa:R eye%' : '%fa:R eye-slash%', | ||||
| 				action: this.toggleSensitive | ||||
| 			}, null, { | ||||
| 				type: 'item', | ||||
| 				text: '%i18n:@contextmenu.copy-url%', | ||||
| 				icon: '%fa:link%', | ||||
| @@ -149,6 +154,13 @@ export default Vue.extend({ | ||||
| 			}); | ||||
| 		}, | ||||
|  | ||||
| 		toggleSensitive() { | ||||
| 			(this as any).api('drive/files/update', { | ||||
| 				fileId: this.file.id, | ||||
| 				isSensitive: !this.file.isSensitive | ||||
| 			}); | ||||
| 		}, | ||||
|  | ||||
| 		copyUrl() { | ||||
| 			copyToClipboard(this.file.url); | ||||
| 			(this as any).apis.dialog({ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 syuilo
					syuilo