mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-14 10:37:00 +02:00
25 lines
680 B
JavaScript
25 lines
680 B
JavaScript
import Component from '@ember/component';
|
|
import { computed } from '@ember/object';
|
|
|
|
export default Component.extend({
|
|
tagName: '',
|
|
|
|
// api
|
|
isCertTab: false,
|
|
isConfigure: false,
|
|
baseKey: null,
|
|
backendCrumb: null,
|
|
model: null,
|
|
options: null,
|
|
hasItems: computed('model.meta.total', function() {
|
|
return this.get('model.meta.total');
|
|
}),
|
|
isConfigurable: computed('model.type', function() {
|
|
const configurableEngines = ['aws', 'ssh', 'pki'];
|
|
return configurableEngines.includes(this.get('model.type'));
|
|
}),
|
|
isConfigurableTab: computed('isCertTab', 'isConfigure', function() {
|
|
return this.get('isCertTab') || this.get('isConfigure');
|
|
}),
|
|
});
|