Prechádzať zdrojové kódy

try to use console button

andre 4 rokov pred
rodič
commit
5ba16e04c0
1 zmenil súbory, kde vykonal 0 pridanie a 29 odobranie
  1. 0 29
      app/UI/Vms/Buttons/ConsoleButton.php

+ 0 - 29
app/UI/Vms/Buttons/ConsoleButton.php

@@ -46,35 +46,6 @@ class ConsoleButton extends ButtonDataTableModalAction implements ClientArea
         return $this;
     }
 
-    protected function parseCustomParams()
-    {
-        if (count($this->redirectParams) === 0 && $this->rawUrl === null)
-        {
-            return '{}';
-        }
-
-        return $this->parseListTOJsString($this->redirectParams);
-    }
-
-    protected function parseListTOJsString($params)
-    {
-        $jsString = '{';
-
-        if ($this->rawUrl !== null)
-        {
-            $params['rawUrl'] = $this->rawUrl;
-        }
-
-        foreach ($params as $key => $value)
-        {
-            $jsString .= ' ' . str_replace('-', '__', $key) . ': ' . (is_array($value) ? ($this->parseListTOJsString($value) . ',') : ("'" . (string) $value) . "',");
-        }
-
-        $jsString = trim($jsString, ',') . ' } ';
-
-        return $jsString;
-    }
-
     public function setRedirectParams($paramsList)
     {
         $this->redirectParams = $paramsList;