mirror of
				https://github.com/scinote-eln/scinote-web.git
				synced 2025-11-01 00:56:05 +08:00 
			
		
		
		
	Fix available actions for archived items [SCI-8489]
This commit is contained in:
		
							parent
							
								
									b18e0c8c53
								
							
						
					
					
						commit
						3499d6c6c5
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		|  | @ -59,6 +59,8 @@ module Toolbars | |||
|     def edit_action | ||||
|       return unless can_manage_repository_rows?(@repository) | ||||
| 
 | ||||
|       return unless @repository_rows.all?(&:active?) | ||||
| 
 | ||||
|       { | ||||
|         name: 'edit', | ||||
|         label: I18n.t('repositories.edit_record'), | ||||
|  | @ -72,6 +74,8 @@ module Toolbars | |||
|     def assign_action | ||||
|       return unless can_manage_repository_rows?(@repository) | ||||
| 
 | ||||
|       return unless @repository_rows.all?(&:active?) | ||||
| 
 | ||||
|       { | ||||
|         name: 'assign', | ||||
|         label: I18n.t('repositories.assign_record'), | ||||
|  | @ -85,6 +89,8 @@ module Toolbars | |||
|     def duplicate_action | ||||
|       return unless can_create_repository_rows?(@repository) | ||||
| 
 | ||||
|       return unless @repository_rows.all?(&:active?) | ||||
| 
 | ||||
|       { | ||||
|         name: 'duplicate', | ||||
|         label: I18n.t('repositories.copy_record'), | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue