Improve auto-approve menu design and remove unnecessary options (#7180)
This commit is contained in:
1 parent
1cfff0a45f
commit
9b1dc5bd92
56 files changed
+322
-739
No files matched your search
@@ -76,13 +76,9 @@ export async function updateTaskSettings(controller: Controller, request: Update
|
||||
const mergedSettings = {
|
||||
...currentAutoApprovalSettings,
|
||||
...(autoApprovalSettings.version !== undefined && { version: autoApprovalSettings.version }),
|
||||
...(autoApprovalSettings.enabled !== undefined && { enabled: autoApprovalSettings.enabled }),
|
||||
...(autoApprovalSettings.maxRequests !== undefined && { maxRequests: autoApprovalSettings.maxRequests }),
|
||||
...(autoApprovalSettings.enableNotifications !== undefined && {
|
||||
enableNotifications: autoApprovalSettings.enableNotifications,
|
||||
}),
|
||||
...(autoApprovalSettings.favorites &&
|
||||
autoApprovalSettings.favorites.length > 0 && { favorites: autoApprovalSettings.favorites }),
|
||||
actions: {
|
||||
...currentAutoApprovalSettings.actions,
|
||||
...(autoApprovalSettings.actions
|
||||
|
||||
Reference in new issue
Block a user