mirror of https://github.com/rancher/dashboard.git
25 lines
514 B
JavaScript
25 lines
514 B
JavaScript
import SteveModel from '@shell/plugins/steve/steve-class';
|
|
|
|
export default class ConfigMap extends SteveModel {
|
|
get keysDisplay() {
|
|
const keys = [
|
|
...Object.keys(this.data || []),
|
|
...Object.keys(this.binaryData || [])
|
|
];
|
|
|
|
if ( !keys.length ) {
|
|
return '(none)';
|
|
}
|
|
|
|
// if ( keys.length >= 4 ) {
|
|
// return `${keys[0]}, ${keys[1]}, ${keys[2]} and ${keys.length - 3} more`;
|
|
// }
|
|
|
|
return keys.join(', ');
|
|
}
|
|
|
|
get fullDetailPageOverride() {
|
|
return true;
|
|
}
|
|
}
|