Morocco annexed Western Sahara during the late 1970s , but final resolution on the status of the territory remains unresolved .