open-vault/ui/app/components/token-expire-warning.js

15 lines
381 B
JavaScript
Raw Normal View History

import Component from '@glimmer/component';
import { inject as service } from '@ember/service';
2018-04-03 14:16:57 +00:00
export default class TokenExpireWarning extends Component {
@service router;
get showWarning() {
let currentRoute = this.router.currentRouteName;
2021-10-29 21:54:15 +00:00
if ('vault.cluster.oidc-provider' === currentRoute) {
return false;
}
return !!this.args.expirationDate;
}
}