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:
Franco Fichtner
2026-09-18 13:38:16 +02:00
parent 857b29009b
commit dfb019d9ab
@@ -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'];
}
}