mirror of https://github.com/rancher/ui.git
21 lines
399 B
JavaScript
21 lines
399 B
JavaScript
import { helper } from '@ember/component/helper';
|
|
|
|
export function hasOverride(params, hash) {
|
|
const { questions, paramName } = hash;
|
|
let match = null;
|
|
|
|
if (!questions) {
|
|
return false;
|
|
} else {
|
|
match = questions.findBy('variable', paramName);
|
|
|
|
if (match) {
|
|
return true;
|
|
} else {
|
|
return false;
|
|
}
|
|
}
|
|
}
|
|
|
|
export default helper(hasOverride);
|