open-vault/ui/app/components/token-expire-warning.js
2021-10-29 16:54:15 -05:00

15 lines
381 B
JavaScript

import Component from '@glimmer/component';
import { inject as service } from '@ember/service';
export default class TokenExpireWarning extends Component {
@service router;
get showWarning() {
let currentRoute = this.router.currentRouteName;
if ('vault.cluster.oidc-provider' === currentRoute) {
return false;
}
return !!this.args.expirationDate;
}
}