Files
threshold-ui/addons/core/addon/helpers/is-loading.js
T
55e1e68f30 [COMPLIANCE] Update Copyright and License Headers (#3099)
Co-authored-by: hashicorp-copywrite[bot] <110428419+hashicorp-copywrite[bot]@users.noreply.github.com>
Co-authored-by: Dharini <dharini@hashicorp.com>
2026-01-20 11:35:10 -05:00

28 lines
542 B
JavaScript

/**
* Copyright IBM Corp. 2021, 2025
* SPDX-License-Identifier: BUSL-1.1
*/
import Helper from '@ember/component/helper';
import { service } from '@ember/service';
/**
* This helper returns true or false based on the state of the ember-loading
* service's `isLoading` attribute.
*/
export default class extends Helper {
// =services
@service loading;
// =methods
/**
* Returns true if "something" is loading according to ember-loading.
* @return {boolean}
*/
compute() {
return this.loading.isLoading;
}
}