Browse Source

new info button

andre 5 months ago
parent
commit
3576101010

+ 1 - 5
app/UI/Client/Setting/Buttons/EditSettingButton.php

@@ -5,11 +5,7 @@ namespace ThurData\Servers\KerioEmail\App\UI\Client\Setting\Buttons;
 
 use ThurData\Servers\KerioEmail\App\UI\Client\Setting\Modals\EditSettingModal;
 use \ThurData\Servers\KerioEmail\Core\UI\Widget\Buttons\ButtonDataTableModalAction;
-use ThurData\Servers\KerioEmail\App\UI\Client\Setting\Modals\AddSettingModal;
 use ThurData\Servers\KerioEmail\Core\UI\Interfaces\ClientArea;
-use ThurData\Servers\KerioEmail\Core\UI\Widget\Buttons\ButtonCustomAction;
-use ThurData\Servers\KerioEmail\Core\UI\Widget\Buttons\ButtonModal;
-use ThurData\Servers\KerioEmail\Core\UI\Widget\Buttons\DropdawnButtonWrappers\ButtonDropdownItem;
 
 /**
  *
@@ -28,7 +24,7 @@ class EditSettingButton extends ButtonDataTableModalAction implements ClientArea
     {
         $this->initIds('editSettingButton');
         $this->initLoadModalAction(new EditSettingModal());
-        $this->setDisableByColumnValue("selfdns", 0);
+        $this->setDisableByColumnValue("mxactive", 'danger');
     }
 
 }

+ 0 - 20
app/UI/Client/Setting/Pages/Settings.php

@@ -106,26 +106,6 @@ class Settings extends DataTable implements ClientArea
         return $field->getHtml();
     }
 
-    /**
-     * @param $key
-     * @param $row
-     * @return mixed
-     */
-    public function replaceFieldLast_login($key, $row)
-    {
-        return $row[$key] ? $row[$key] : '-';
-    }
-
-    /**
-     * @param $key
-     * @param $row
-     * @return mixed
-     */
-    public function replaceFieldType($key, $row)
-    {
-//        return $row[$key] == 'Room' ? di('lang')->absoluteT('kerio','setting','type','location') : di('lang')->absoluteT('kerio','setting','type','equipment');
-    }
-
     /**
      * load buttons
      */