torrent operation log type add edit&delete

This commit is contained in:
xiaomlove
2022-12-08 03:48:20 +08:00
parent 6c58a38166
commit 7386806bd6
22 changed files with 386 additions and 71 deletions

View File

@@ -15,11 +15,15 @@ class TorrentOperationLog extends NexusModel
const ACTION_TYPE_APPROVAL_NONE = 'approval_none';
const ACTION_TYPE_APPROVAL_ALLOW = 'approval_allow';
const ACTION_TYPE_APPROVAL_DENY = 'approval_deny';
const ACTION_TYPE_EDIT = 'edit';
const ACTION_TYPE_DELETE = 'delete';
public static array $actionTypes = [
self::ACTION_TYPE_APPROVAL_NONE => ['text' => 'Approval none'],
self::ACTION_TYPE_APPROVAL_ALLOW => ['text' => 'Approval allow'],
self::ACTION_TYPE_APPROVAL_DENY => ['text' => 'Approval deny'],
self::ACTION_TYPE_EDIT => ['text' => 'Edit'],
self::ACTION_TYPE_DELETE => ['text' => 'Delete'],
];
public function getActionTypeTextAttribute()