Skip to content

Commit 8b59c1c

Browse files
committed
Support new sftp event types
1 parent 33ab762 commit 8b59c1c

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

resources/lang/en/activity.php

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,19 @@
8383
'write' => 'Wrote new content to :file',
8484
'upload' => 'Began a file upload',
8585
],
86+
'sftp' => [
87+
'denied' => 'Blocked SFTP access due to permissions',
88+
'create_one' => 'Created :files.0',
89+
'create_other' => 'Created :count new files',
90+
'write_one' => 'Modified the contents of :files.0',
91+
'write_other' => 'Modified the contents of :count files',
92+
'delete_one' => 'Deleted :files.0',
93+
'delete_other' => 'Deleted :count files',
94+
'create-directory_one' => 'Created the :files.0 directory',
95+
'create-directory_other' => 'Created :count directories',
96+
'rename_one' => 'Renamed :files.0.from to :files.0.to',
97+
'rename_other' => 'Renamed or moved :count files',
98+
],
8699
'allocation' => [
87100
'create' => 'Added :allocation to the server',
88101
'notes' => 'Updated the notes for :allocation from ":old" to ":new"',
@@ -100,9 +113,6 @@
100113
'update' => 'Updated the ":action" task for the :name schedule',
101114
'delete' => 'Deleted a task for the :name schedule',
102115
],
103-
'sftp' => [
104-
'denied' => 'Blocked SFTP access due to permissions',
105-
],
106116
'settings' => [
107117
'rename' => 'Renamed the server from :old to :new',
108118
],

resources/scripts/components/elements/activity/ActivityLogEntry.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export default ({ activity, children }: Props) => {
6969
<TerminalIcon />
7070
</Tooltip>
7171
)}
72-
{activity.properties.using_sftp && (
72+
{activity.event.startsWith('server:sftp.') && (
7373
<Tooltip placement={'top'} content={'Using SFTP'}>
7474
<FolderOpenIcon />
7575
</Tooltip>

0 commit comments

Comments
 (0)