ui: tasks: use format_task_status
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
This commit is contained in:
		
				
					committed by
					
						 Thomas Lamprecht
						Thomas Lamprecht
					
				
			
			
				
	
			
			
			
						parent
						
							67466ce564
						
					
				
				
					commit
					73b77d4787
				
			| @ -372,14 +372,7 @@ Ext.define('PBS.node.Tasks', { | |||||||
| 		    return ''; | 		    return ''; | ||||||
| 		} | 		} | ||||||
|  |  | ||||||
| 		let parsed = Proxmox.Utils.parse_task_status(value); | 		return Proxmox.Utils.format_task_status(value); | ||||||
| 		switch (parsed) { |  | ||||||
| 		    case 'unknown': return Proxmox.Utils.unknownText; |  | ||||||
| 		    case 'error': return Proxmox.Utils.errorText + ': ' + value; |  | ||||||
| 		    case 'ok': // fall-through |  | ||||||
| 		    case 'warning': // fall-through |  | ||||||
| 		    default: return value; |  | ||||||
| 		} |  | ||||||
| 	    }, | 	    }, | ||||||
| 	}, | 	}, | ||||||
|     ], |     ], | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user