diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-06-15 09:53:30 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-06-15 09:53:30 +0900 |
| commit | bd827f946a94061f9f720cafe26323ccb605ee92 (patch) | |
| tree | 1ed4dd13bbb7f1343582de48b97570bd5bfc530d /src/client/app/desktop/views/components/drive.vue | |
| parent | Fix (diff) | |
| download | misskey-bd827f946a94061f9f720cafe26323ccb605ee92.tar.gz misskey-bd827f946a94061f9f720cafe26323ccb605ee92.tar.bz2 misskey-bd827f946a94061f9f720cafe26323ccb605ee92.zip | |
ドライブのファイルの削除を実装
Diffstat (limited to 'src/client/app/desktop/views/components/drive.vue')
| -rw-r--r-- | src/client/app/desktop/views/components/drive.vue | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/client/app/desktop/views/components/drive.vue b/src/client/app/desktop/views/components/drive.vue index b69c884089..df141b6d6c 100644 --- a/src/client/app/desktop/views/components/drive.vue +++ b/src/client/app/desktop/views/components/drive.vue @@ -118,6 +118,7 @@ export default Vue.extend({ this.connection.on('file_created', this.onStreamDriveFileCreated); this.connection.on('file_updated', this.onStreamDriveFileUpdated); + this.connection.on('file_deleted', this.onStreamDriveFileDeleted); this.connection.on('folder_created', this.onStreamDriveFolderCreated); this.connection.on('folder_updated', this.onStreamDriveFolderUpdated); @@ -130,6 +131,7 @@ export default Vue.extend({ beforeDestroy() { this.connection.off('file_created', this.onStreamDriveFileCreated); this.connection.off('file_updated', this.onStreamDriveFileUpdated); + this.connection.off('file_deleted', this.onStreamDriveFileDeleted); this.connection.off('folder_created', this.onStreamDriveFolderCreated); this.connection.off('folder_updated', this.onStreamDriveFolderUpdated); (this as any).os.streams.driveStream.dispose(this.connectionId); @@ -167,6 +169,10 @@ export default Vue.extend({ } }, + onStreamDriveFileDeleted(fileId) { + this.removeFile(fileId); + }, + onStreamDriveFolderCreated(folder) { this.addFolder(folder, true); }, |