1
1
mirror of https://github.com/pterodactyl/panel.git synced 2024-11-22 09:02:28 +01:00

Support new sftp event types

This commit is contained in:
DaneEveritt 2022-07-10 13:47:19 -04:00
parent 33ab762f5a
commit 8b59c1c1a8
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53
2 changed files with 14 additions and 4 deletions

View File

@ -83,6 +83,19 @@ return [
'write' => 'Wrote new content to :file',
'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' => [
'create' => 'Added :allocation to the server',
'notes' => 'Updated the notes for :allocation from ":old" to ":new"',
@ -100,9 +113,6 @@ return [
'update' => 'Updated the ":action" task for the :name schedule',
'delete' => 'Deleted a task for the :name schedule',
],
'sftp' => [
'denied' => 'Blocked SFTP access due to permissions',
],
'settings' => [
'rename' => 'Renamed the server from :old to :new',
],

View File

@ -69,7 +69,7 @@ export default ({ activity, children }: Props) => {
<TerminalIcon />
</Tooltip>
)}
{activity.properties.using_sftp && (
{activity.event.startsWith('server:sftp.') && (
<Tooltip placement={'top'} content={'Using SFTP'}>
<FolderOpenIcon />
</Tooltip>