Plans to turn a bakery in Meadowfield into a flat have been approved by the council.