         
         alert.addAction(UIAlertAction(title: "Bekreft", style: UIAlertActionStyle.default, handler: { (action) in
             alert.dismiss(animated: true, completion: nil)
-            self.confirm()
             
+            
+
             
         }))
         

            
            prntRef.updateChildValues(["tielleve": "Ledig"])
        
        }
            
        if roomList[myIndex].ellevetolv! == "Ledig" {
            





class RoomViewController: UIViewController, UITableViewDelegate, UITableViewDataSource{

    
    var ref = FIRDatabase.database().reference()
    
    let prntRef  = FIRDatabase.database().reference().child("list").child(roomList[myIndex].name!)


      @IBOutlet weak var navigationBar: UINavigationBar!
    
