Add error message to Lightshow file
This commit is contained in:
@@ -26,8 +26,16 @@ class LightshowDownloadView: UITableViewController{
|
||||
// Fetch a cell of the appropriate type.
|
||||
let cell = tableView.dequeueReusableCell(withIdentifier: "lightshowDownloadCell")
|
||||
let model = model?.getStudentAtIndex(indexPath.row);
|
||||
|
||||
let isOk : Bool = model?.isOkFiles() ?? false;
|
||||
|
||||
(cell as! LightshowDownloadCell).LightshowName.text = model?.name
|
||||
(cell as! LightshowDownloadCell).warningMessage.isHidden = model?.isOkFiles() ?? false;
|
||||
(cell as! LightshowDownloadCell).warningMessage.isHidden = isOk;
|
||||
var alertText = ""
|
||||
if (!isOk){
|
||||
alertText = "(Le fichcier mp3 ou fseq n'a pas été reconnu)"
|
||||
}
|
||||
(cell as! LightshowDownloadCell).alertLabel.text = alertText
|
||||
return cell!
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user