fixed workorder company view for status filter

This commit is contained in:
2025-09-11 08:02:01 +02:00
parent 90e40567b1
commit 0a23692519
2 changed files with 6 additions and 13 deletions
@@ -30,11 +30,6 @@ class WorkorderCompanyController extends WorkorderBaseController {
$this->additionalJSVariables['COMPANY_ID'] = $company ? $company->id : 0;
}
//region ACTIONS
public function indexAction() {
parent::indexAction();
}
protected function logout() {
mfLoginController::staticLogout();
$this->redirect('/WorkorderCompany/Mobile');
@@ -43,15 +38,11 @@ class WorkorderCompanyController extends WorkorderBaseController {
public function mobileAction() {
$company = WorkorderCompanyModel::getFirst(['addressId' => $this->user->address_id]);
$vue_config = [
$this->layout()->setTemplate("VueViews/WorkorderCompanyPWA");
$this->layout()->set("JSGlobals", [
'BASE_PATH' => '/WorkorderCompany',
'COMPANY_ID' => $company ? $company->id : 0,
// You can add more global variables for your Vue app here
];
// This tells the framework to use your new PWA layout file
$this->layout()->setTemplate("VueViews/WorkorderCompanyPWA");
$this->layout()->set("JSGlobals", $vue_config);
]);
}
protected function getAction() {