Directive to change a model based on enum flags