mirror of
				https://github.com/SillyTavern/SillyTavern.git
				synced 2025-06-05 21:59:27 +02:00 
			
		
		
		
	| @@ -1501,16 +1501,18 @@ async function onGroupActionClick(event) { | |||||||
|         const index = _thisGroup.disabled_members.indexOf(member.data('id')); |         const index = _thisGroup.disabled_members.indexOf(member.data('id')); | ||||||
|         if (index !== -1) { |         if (index !== -1) { | ||||||
|             _thisGroup.disabled_members.splice(index, 1); |             _thisGroup.disabled_members.splice(index, 1); | ||||||
|         } |  | ||||||
|             await editGroup(openGroupId, false, false); |             await editGroup(openGroupId, false, false); | ||||||
|         } |         } | ||||||
|  |     } | ||||||
|  |  | ||||||
|     if (action === 'disable') { |     if (action === 'disable') { | ||||||
|         member.addClass('disabled'); |         member.addClass('disabled'); | ||||||
|         const _thisGroup = groups.find(x => x.id === openGroupId); |         const _thisGroup = groups.find(x => x.id === openGroupId); | ||||||
|  |         if (!_thisGroup.disabled_members.includes(member.data('id'))) { | ||||||
|             _thisGroup.disabled_members.push(member.data('id')); |             _thisGroup.disabled_members.push(member.data('id')); | ||||||
|             await editGroup(openGroupId, false, false); |             await editGroup(openGroupId, false, false); | ||||||
|         } |         } | ||||||
|  |     } | ||||||
|  |  | ||||||
|     if (action === 'up' || action === 'down') { |     if (action === 'up' || action === 'down') { | ||||||
|         await reorderGroupMember(openGroupId, member, action); |         await reorderGroupMember(openGroupId, member, action); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user