diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-10-23 07:01:43 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-10-23 07:01:43 +0900 |
| commit | 8ba87443ca7d84f0d650943e2161d22b1844f1a9 (patch) | |
| tree | b88db1aac46c05199493c2a13902465fbfd3bbe6 /src/client | |
| parent | Improve some API definitions (diff) | |
| download | misskey-8ba87443ca7d84f0d650943e2161d22b1844f1a9.tar.gz misskey-8ba87443ca7d84f0d650943e2161d22b1844f1a9.tar.bz2 misskey-8ba87443ca7d84f0d650943e2161d22b1844f1a9.zip | |
Use camelCase instead of snake_case
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/app/desktop/views/components/drive.vue | 10 | ||||
| -rw-r--r-- | src/client/app/mobile/views/components/drive.vue | 10 |
2 files changed, 10 insertions, 10 deletions
diff --git a/src/client/app/desktop/views/components/drive.vue b/src/client/app/desktop/views/components/drive.vue index 1376a04d99..054ba8b358 100644 --- a/src/client/app/desktop/views/components/drive.vue +++ b/src/client/app/desktop/views/components/drive.vue @@ -117,11 +117,11 @@ export default Vue.extend({ mounted() { this.connection = (this as any).os.stream.useSharedConnection('drive'); - 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); + this.connection.on('fileCreated', this.onStreamDriveFileCreated); + this.connection.on('fileUpdated', this.onStreamDriveFileUpdated); + this.connection.on('fileDeleted', this.onStreamDriveFileDeleted); + this.connection.on('folderCreated', this.onStreamDriveFolderCreated); + this.connection.on('folderUpdated', this.onStreamDriveFolderUpdated); if (this.initFolder) { this.move(this.initFolder); diff --git a/src/client/app/mobile/views/components/drive.vue b/src/client/app/mobile/views/components/drive.vue index 469f6da240..4daa691d95 100644 --- a/src/client/app/mobile/views/components/drive.vue +++ b/src/client/app/mobile/views/components/drive.vue @@ -103,11 +103,11 @@ export default Vue.extend({ mounted() { this.connection = (this as any).os.stream.useSharedConnection('drive'); - 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); + this.connection.on('fileCreated', this.onStreamDriveFileCreated); + this.connection.on('fileUpdated', this.onStreamDriveFileUpdated); + this.connection.on('fileDeleted', this.onStreamDriveFileDeleted); + this.connection.on('folderCreated', this.onStreamDriveFolderCreated); + this.connection.on('folderUpdated', this.onStreamDriveFolderUpdated); if (this.initFolder) { this.cd(this.initFolder, true); |