mirror of
https://github.com/nasa/openmct.git
synced 2025-05-09 20:12:50 +00:00
in table config component add name to headers if it does not exist so it can be hidden
This commit is contained in:
parent
21ae9f45c1
commit
b98fa58e18
@ -104,6 +104,15 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
updateHeaders(headers) {
|
||||
// add name column if it doesn't exist,
|
||||
// it's always the first column when it's manually added
|
||||
if (!headers.name) {
|
||||
headers = {
|
||||
name: 'Name',
|
||||
...headers
|
||||
};
|
||||
}
|
||||
|
||||
this.headers = headers;
|
||||
},
|
||||
toggleColumn(key) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user