Per team discussion, change flagType property name to type

Removed deprecated mw-ui-primary type

Change-Id: If74b14c003d433be6078cf178560c8a02bbca7bb
(cherry picked from commit ee1cc5abb890c000b16cd12f0cc8d2f8eaa65c25)