Updated: KPI design at back office

This commit is contained in:
Abhishek Kumar
2023-11-02 12:48:49 +05:30
parent ce93a9826f
commit 86d76ea4e8
17 changed files with 856 additions and 215 deletions

View File

@@ -963,6 +963,18 @@ class AdminControllerCore extends Controller
return true;
}
protected function ajaxProcessChangeKpiVisibility()
{
$cookieKey = 'kpi_visibility_'.$this->context->controller->className.'_'.Tools::getValue('kpi_id');
$this->context->cookie->$cookieKey = (int) Tools::getValue('is_visible');
}
protected function ajaxProcessSaveKpiView()
{
$cookieKey = 'kpi_wrapping_'.$this->context->controller->className;
$this->context->cookie->$cookieKey = (int) Tools::getValue('no_wrapping');
}
/**
* @TODO uses redirectAdmin only if !$this->ajax
* @return bool