olivetin/frontend/resources/vue/utils/needsArgumentForm.js

6 lines
216 B
JavaScript

import { actionRequiresJustification } from './justificationTemplate.js'
export function needsArgumentForm (action) {
return (action?.arguments?.length > 0) || actionRequiresJustification(action?.justification)
}