Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cellframe-dashboard
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Code
Merge requests
4
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cellframe
cellframe-dashboard
Merge requests
!111
Revert "Merge branch 'bugs-3089' into 'develop'"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Revert "Merge branch 'bugs-3089' into 'develop'"
revert-20055ebe
into
develop
Overview
0
Commits
1
Pipelines
1
Changes
4
Merged
andrey.daragan
requested to merge
revert-20055ebe
into
develop
5 years ago
Overview
0
Commits
1
Pipelines
1
Changes
4
Expand
This reverts merge request
!110 (merged)
👍
0
👎
0
Merge request reports
Compare
develop
develop (base)
and
latest version
latest version
05a0cd98
1 commit,
5 years ago
4 files
+
18
−
40
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
Search (e.g. *.vue) (Ctrl+P)
CellFrameDashboardGUI/screen/desktop/Console/DapConsoleRightPanel.qml
+
5
−
12
Options
@@ -7,8 +7,6 @@ DapConsoleRightPanelForm
property
string
commandQuery
///@detalis historyQuery Text of command from the command history.
property
string
historyQuery
///@detalis historyQueryIndex Index of command from the command history.
property
string
historyQueryIndex
///@detalis historySize Num of history command at right panel.
property
int
historySize
:
10
@@ -25,6 +23,7 @@ DapConsoleRightPanelForm
//Returns true if item 'someElement' is already exist at list 'someModel'.
function
findElement
(
someModel
,
someElement
)
{
console
.
log
(
"
someElement.query
"
,
someElement
.
query
)
for
(
var
i
=
0
;
i
<
someModel
.
count
;
++
i
)
if
(
someModel
.
get
(
i
).
query
===
someElement
.
query
)
{
@@ -37,28 +36,22 @@ DapConsoleRightPanelForm
onCommandQueryChanged
:
{
console
.
log
(
"
commandQuery
"
,
commandQuery
)
//Adding only new element
if
(
!
findElement
(
modelHistoryConsole
,
{
query
:
commandQuery
}))
{
if
(
commandQuery
!==
""
)
{
modelHistoryConsole
.
insert
(
0
,
{
query
:
commandQuery
});
}
}
else
modelHistoryConsole
.
insert
(
0
,
{
query
:
commandQuery
});
//History is limited by historySize and realized as FIFO
if
(
historySize
<
modelHistoryConsole
.
count
)
modelHistoryConsole
.
remove
(
modelHistoryConsole
.
count
-
1
);
}
//Handler for the doubleClick on right history panel
onHistoryQueryIndexChanged
:
{
if
(
historyQueryIndex
>
-
1
)
{
historyQuery
=
modelHistoryConsole
.
get
(
historyQueryIndex
).
query
;
historyQueryIndex
=
-
1
;
historyQuery
=
""
modelHistoryConsole
.
remove
(
modelHistoryConsole
.
count
-
1
);
}
}
}
Loading