@alihbuzaid/ember-ui
Version:
Fleetbase UI provides all the interface components, helpers, services and utilities for building a Fleetbase extension into the Console.
15 lines (12 loc) • 400 B
JavaScript
import isFastBoot from '../is-fastboot';
import { assert } from '@ember/debug';
export default function arg(fadeProperty) {
assert('You have to provide a fadeProperty for typeClass', typeof fadeProperty === 'string');
return function () {
return {
get() {
return !isFastBoot(this) && this.args[fadeProperty] !== false;
},
};
};
}