52fe56ec87
* adds prefer-const to eslint config and runs fixer * reverts unintended change
15 lines
383 B
JavaScript
15 lines
383 B
JavaScript
import Component from '@glimmer/component';
|
|
import { inject as service } from '@ember/service';
|
|
|
|
export default class TokenExpireWarning extends Component {
|
|
@service router;
|
|
|
|
get showWarning() {
|
|
const currentRoute = this.router.currentRouteName;
|
|
if ('vault.cluster.oidc-provider' === currentRoute) {
|
|
return false;
|
|
}
|
|
return !!this.args.expirationDate;
|
|
}
|
|
}
|