Support new sftp event types
This commit is contained in:
parent
33ab762f5a
commit
8b59c1c1a8
|
@ -83,6 +83,19 @@ return [
|
||||||
'write' => 'Wrote new content to :file',
|
'write' => 'Wrote new content to :file',
|
||||||
'upload' => 'Began a file upload',
|
'upload' => 'Began a file upload',
|
||||||
],
|
],
|
||||||
|
'sftp' => [
|
||||||
|
'denied' => 'Blocked SFTP access due to permissions',
|
||||||
|
'create_one' => 'Created :files.0',
|
||||||
|
'create_other' => 'Created :count new files',
|
||||||
|
'write_one' => 'Modified the contents of :files.0',
|
||||||
|
'write_other' => 'Modified the contents of :count files',
|
||||||
|
'delete_one' => 'Deleted :files.0',
|
||||||
|
'delete_other' => 'Deleted :count files',
|
||||||
|
'create-directory_one' => 'Created the :files.0 directory',
|
||||||
|
'create-directory_other' => 'Created :count directories',
|
||||||
|
'rename_one' => 'Renamed :files.0.from to :files.0.to',
|
||||||
|
'rename_other' => 'Renamed or moved :count files',
|
||||||
|
],
|
||||||
'allocation' => [
|
'allocation' => [
|
||||||
'create' => 'Added :allocation to the server',
|
'create' => 'Added :allocation to the server',
|
||||||
'notes' => 'Updated the notes for :allocation from ":old" to ":new"',
|
'notes' => 'Updated the notes for :allocation from ":old" to ":new"',
|
||||||
|
@ -100,9 +113,6 @@ return [
|
||||||
'update' => 'Updated the ":action" task for the :name schedule',
|
'update' => 'Updated the ":action" task for the :name schedule',
|
||||||
'delete' => 'Deleted a task for the :name schedule',
|
'delete' => 'Deleted a task for the :name schedule',
|
||||||
],
|
],
|
||||||
'sftp' => [
|
|
||||||
'denied' => 'Blocked SFTP access due to permissions',
|
|
||||||
],
|
|
||||||
'settings' => [
|
'settings' => [
|
||||||
'rename' => 'Renamed the server from :old to :new',
|
'rename' => 'Renamed the server from :old to :new',
|
||||||
],
|
],
|
||||||
|
|
|
@ -69,7 +69,7 @@ export default ({ activity, children }: Props) => {
|
||||||
<TerminalIcon />
|
<TerminalIcon />
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
)}
|
)}
|
||||||
{activity.properties.using_sftp && (
|
{activity.event.startsWith('server:sftp.') && (
|
||||||
<Tooltip placement={'top'} content={'Using SFTP'}>
|
<Tooltip placement={'top'} content={'Using SFTP'}>
|
||||||
<FolderOpenIcon />
|
<FolderOpenIcon />
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
|
|
Loading…
Reference in New Issue