mirror of https://github.com/rancher/dashboard.git
16 lines
320 B
JavaScript
16 lines
320 B
JavaScript
const EMPTY = {};
|
|
|
|
export default {
|
|
app() {
|
|
const spec = this.spec || EMPTY;
|
|
const status = this.status || EMPTY;
|
|
const metadata = this.metadata || EMPTY;
|
|
|
|
return spec.app || status.computedApp || metadata.name;
|
|
},
|
|
|
|
namespaceApp() {
|
|
return `${ this.metadata.namespace }:${ this.app }`;
|
|
},
|
|
};
|