Skip to content

Commit

Permalink
Patch errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikVerheul committed Sep 25, 2024
1 parent 11fbc73 commit 45a9a32
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
8 changes: 1 addition & 7 deletions src/components/views/common_view.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,18 +209,12 @@ const methods = {
store.dispatch('resetSearchInTitles', { caller: 'resetSearchTitles', toDispatch: [] })
},

debugText(node) {
const t1 = node.isExpanded ? 'Y' : 'N'
const t2 = node.doShow ? 'Y' : 'N'
return '-' + t1 + t2
},

patchTitle(node) {
if (store.state.userData.myOptions.proUser === 'false') return node.title
let patch = ''
if (node.dependencies && node.dependencies.length > 0) patch = '▲ '
if (node.conditionalFor && node.conditionalFor.length > 0) patch = patch + '▼ '
return patch + node.title + this.debugText(node)
return patch + node.title
},

rowLength(violation) {
Expand Down
2 changes: 1 addition & 1 deletion src/store/modules/startup.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ const actions = {
rootState.isCoarseHistLoaded = false
rootState.lastSessionData = {
detailView: { lastSelectedProductId: null, expandedNodes: [], doShowNodes: [] },
overView: { lastSelectedProductId: null, expandedNodes: [], doShowNodes: [] },
coarseView: { lastSelectedProductId: null, expandedNodes: [], doShowNodes: [] },
}
}
// start the watchdog
Expand Down

0 comments on commit 45a9a32

Please sign in to comment.