2023-03-15 16:00:52 +00:00
|
|
|
/**
|
|
|
|
* Copyright (c) HashiCorp, Inc.
|
|
|
|
* SPDX-License-Identifier: MPL-2.0
|
|
|
|
*/
|
|
|
|
|
2021-05-19 16:43:55 +00:00
|
|
|
import Component from '@glimmer/component';
|
2022-09-01 22:15:54 +00:00
|
|
|
import { action } from '@ember/object';
|
|
|
|
import { inject as service } from '@ember/service';
|
|
|
|
import { next } from '@ember/runloop';
|
2018-10-19 22:24:57 +00:00
|
|
|
|
2021-05-19 16:43:55 +00:00
|
|
|
export default class SecretVersionMenu extends Component {
|
2022-09-01 22:15:54 +00:00
|
|
|
@service router;
|
|
|
|
|
2021-05-19 16:43:55 +00:00
|
|
|
onRefresh() {}
|
2022-09-01 22:15:54 +00:00
|
|
|
|
|
|
|
@action
|
|
|
|
closeDropdown(dropdown) {
|
|
|
|
// strange issue where closing dropdown triggers full transition which redirects to auth screen in production builds
|
|
|
|
// closing dropdown in next tick of run loop fixes it
|
|
|
|
next(() => dropdown.actions.close());
|
|
|
|
}
|
2021-05-19 16:43:55 +00:00
|
|
|
}
|