Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-webui
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue 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
caosdb
Software
caosdb-webui
Commits
fa3baad5
Commit
fa3baad5
authored
2 years ago
by
Henrik tom Wörden
Browse files
Options
Downloads
Patches
Plain Diff
MAINT: use other order when checking suitable name replacements
parent
23102304
No related branches found
No related tags found
2 merge requests
!84
Release 0.9
,
!79
MAINT: use other order when checking suitable name replacements
Pipeline
#29170
passed
2 years ago
Stage: linting
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/core/js/ext_references.js
+8
-9
8 additions, 9 deletions
src/core/js/ext_references.js
with
8 additions
and
9 deletions
src/core/js/ext_references.js
+
8
−
9
View file @
fa3baad5
...
...
@@ -331,26 +331,25 @@ var resolve_references = new function () {
// TODO handle multiple parents
const
par
=
resolve_references
.
getParents
(
entity
)[
0
]
||
{};
const
name
=
getEntityName
(
entity
);
var
ret
=
{
"
text
"
:
id
};
if
(
getEntityHeadingAttribute
(
entity
,
"
path
"
)
!==
if
(
par
.
name
===
"
TestReferenced
"
&&
typeof
resolve_references
.
test_resolver
===
"
function
"
)
{
// this is a test case, initialized by the test suite.
ret
=
resolve_references
.
test_resolver
(
entity
);
}
else
if
(
typeof
name
!==
"
undefined
"
&&
name
.
length
>
0
){
ret
[
"
text
"
]
=
name
;
}
else
if
(
getEntityHeadingAttribute
(
entity
,
"
path
"
)
!==
undefined
||
par
.
name
==
"
Image
"
)
{
// show file name
var
pths
=
getEntityHeadingAttribute
(
entity
,
"
path
"
)
.
split
(
"
/
"
);
ret
[
"
text
"
]
=
pths
[
pths
.
length
-
1
];
}
else
if
(
par
.
name
===
"
TestReferenced
"
&&
typeof
resolve_references
.
test_resolver
===
"
function
"
)
{
// this is a test case, initialized by the test suite.
ret
=
resolve_references
.
test_resolver
(
entity
);
}
else
{
var
name
=
getEntityName
(
entity
);
if
(
typeof
name
!==
"
undefined
"
&&
name
.
length
>
0
)
{
ret
[
"
text
"
]
=
name
;
}
}
return
ret
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment