Skip to content

Commit

Permalink
For ticket #684
Browse files Browse the repository at this point in the history
  • Loading branch information
mhmdkrmabd committed Feb 18, 2025
1 parent 453137d commit 204e2df
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Binary file added renderer/js/external/jstree/theme/extra/view.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 5 additions & 5 deletions renderer/js/funcs.js
Original file line number Diff line number Diff line change
Expand Up @@ -1588,7 +1588,7 @@ let buildTreeview = (metadata, ignoreTitles = false) => {
parent: tableID, // Under the current table
text: `Views (<span>${table.views.length}</span>)`,
type: 'default',
icon: normalizePath(Path.join(extraIconsPath, 'table.png'))
icon: normalizePath(Path.join(extraIconsPath, 'view.png'))
}

// Append the views' container to the tree structure
Expand Down Expand Up @@ -1619,12 +1619,12 @@ let buildTreeview = (metadata, ignoreTitles = false) => {
* Build a tree view for the current view
* For the `parentType` parameter set it to be the view's keyspace's name; to set a correct scope for getting a CQL description
*/
buildTreeViewForChild(viewsID, viewID, `View`, view, 'table', {
buildTreeViewForChild(viewsID, viewID, `View`, view, 'view', {
keyspace: keyspace.name
})

if (isCounterTable)
buildTreeViewForChild(`${viewsID}_${counterTablesID}`, `${viewID}_${counterTablesID}`, `View`, view, 'table', {
buildTreeViewForChild(`${viewsID}_${counterTablesID}`, `${viewID}_${counterTablesID}`, `View`, view, 'view', {
keyspace: keyspace.name
})

Expand Down Expand Up @@ -1821,7 +1821,7 @@ let buildTreeview = (metadata, ignoreTitles = false) => {
parent: keyspaceID, // Under the current keyspace
text: `Views (<span>${keyspace.views.length}</span>)`,
type: 'default',
icon: normalizePath(Path.join(extraIconsPath, 'table.png'))
icon: normalizePath(Path.join(extraIconsPath, 'view.png'))
}

// Append the views' container to the tree structure
Expand All @@ -1845,7 +1845,7 @@ let buildTreeview = (metadata, ignoreTitles = false) => {
* Build a tree view for the current view
* For the `parentType` parameter set it to be the view's keyspace's name; to set a correct scope for getting a CQL description
*/
buildTreeViewForChild(viewsID, viewID, `View`, view, 'table', keyspace.name)
buildTreeViewForChild(viewsID, viewID, `View`, view, 'view', keyspace.name)

// Add a node/leaf about the view's base table's name
treeStructure.core.data.push({
Expand Down

0 comments on commit 204e2df

Please sign in to comment.