mirror of
https://github.com/opnsense/core.git
synced 2026-10-12 02:20:36 +00:00
interafces: add pending action to make the apply banner persistent
This allows to emulate the old GUI's banner, but in a more modern way.
This commit is contained in:
@@ -222,4 +222,14 @@ class AssignmentController extends ApiMutableModelControllerBase
|
||||
}
|
||||
return ["status" => "failed"];
|
||||
}
|
||||
|
||||
/**
|
||||
* retrieve pending status
|
||||
*/
|
||||
public function pendingAction()
|
||||
{
|
||||
$backend = new Backend();
|
||||
|
||||
return ['status' => file_exists('/tmp/.interfaces.todo') ? 'pending' : 'ok'];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user