mirror of https://github.com/rancher/dashboard.git
40 lines
753 B
JavaScript
40 lines
753 B
JavaScript
export default {
|
|
providers() {
|
|
const spec = this.spec || {};
|
|
|
|
return Object.keys(spec)
|
|
.filter(provider => provider !== 'loggingRef');
|
|
},
|
|
|
|
providersDisplay() {
|
|
return this.providers.map((p) => {
|
|
const translation = this.t(`logging.outputProviders.${ p }`);
|
|
|
|
return translation || this.t('logging.outputProviders.unknown');
|
|
});
|
|
},
|
|
|
|
providersSortable() {
|
|
const copy = [...this.providersDisplay];
|
|
|
|
copy.sort();
|
|
|
|
return copy.join('');
|
|
},
|
|
|
|
text() {
|
|
return this.nameDisplay;
|
|
},
|
|
|
|
url() {
|
|
return {
|
|
name: 'c-cluster-product-resource-namespace-id',
|
|
params: {
|
|
resource: this.type,
|
|
id: this.name,
|
|
namespace: this.namespace
|
|
}
|
|
};
|
|
}
|
|
};
|