mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 23:06:00 +00:00
show json icon in perspectives
This commit is contained in:
@@ -818,6 +818,9 @@ export class PerspectivePatternColumnNode extends PerspectiveTreeNode {
|
||||
// }
|
||||
|
||||
get icon() {
|
||||
if (this.column.types.includes('json')) {
|
||||
return 'img json';
|
||||
}
|
||||
return 'img column';
|
||||
}
|
||||
|
||||
@@ -885,6 +888,10 @@ export class PerspectivePatternColumnNode extends PerspectiveTreeNode {
|
||||
}
|
||||
|
||||
get filterInfo(): PerspectiveFilterColumnInfo {
|
||||
if (this.isChildColumn) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return {
|
||||
columnName: this.columnName,
|
||||
filterType: this.filterType,
|
||||
|
||||
Reference in New Issue
Block a user