Bladeren bron

try to use console button

andre 4 jaren geleden
bovenliggende
commit
88bb8a7c2c
1 gewijzigde bestanden met toevoegingen van 2 en 28 verwijderingen
  1. 2 28
      app/UI/Vms/Buttons/ConsoleButton.php

+ 2 - 28
app/UI/Vms/Buttons/ConsoleButton.php

@@ -39,35 +39,9 @@ class ConsoleButton extends ButtonDataTableModalAction implements ClientArea
     {
     {
     }
     }
 
 
-    public function setRawUrl($url)
+    public function setConsoleUrl($url)
     {
     {
-        $this->rawUrl = $url;
-
-        return $this;
-    }
-
-    public function setRedirectParams($paramsList)
-    {
-        $this->redirectParams = $paramsList;
-
-        $this->updateHtmlAttributesByRedirectParams();
-
+        $this->addHtmlAttribute('onclick', $url);
         return $this;
         return $this;
     }
     }
-
-    protected function updateHtmlAttributesByRedirectParams()
-    {
-        foreach ($this->redirectParams as $key => $value)
-        {
-            $this->updateHtmlAttribute($key, $value);
-        }
-    }
-
-    protected function updateHtmlAttribute($key, $value)
-    {
-        if (strpos($value, ':') === 0)
-        {
-            $this->addHtmlAttribute(':data-' . $key , 'dataRow.' . trim($value, ':'));
-        }
-    }
 }
 }