15 lines
381 B
JavaScript
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;
|
|
}
|
|
}
|