Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dariah
search-commons-webresources
Commits
ea5369fe
Commit
ea5369fe
authored
Feb 09, 2022
by
Gradl, Tobias
Browse files
453: Refactor or reimplement CR / DME overall behavior (new/update)
(OPENED) Task-Url:
search#453
parent
b90eeb28
Changes
1
Hide whitespace changes
Inline
Side-by-side
js/collections/list.js
View file @
ea5369fe
...
...
@@ -82,8 +82,8 @@ CollectionsEditor.prototype.setGroupRow = function(rows, group) {
}
return
$
(
'
<tr class="group state-row-
'
+
overallState
+
'
" id="
'
+
rows
.
data
()[
0
].
entity
.
collection
.
id
+
'
" />
'
)
.
append
(
'
<th
class="state-
'
+
overallState
+
'
"
></th>
'
)
.
append
(
'
<td colspan="5">
'
+
.
append
(
'
<th></th>
'
)
.
append
(
'
<td colspan="5"
style="background-color: transparent;"
>
'
+
'
<h2 class="group-heading">
'
+
'
<a href="
'
+
__util
.
composeRelativeUrl
(
rows
.
data
()[
0
].
entity
.
collection
.
id
)
+
'
/">
'
+
rows
.
data
()[
0
].
entity
.
collection
.
name
+
'
</a>
'
+
'
</h2>
'
+
...
...
@@ -139,7 +139,7 @@ CollectionsEditor.prototype.getIcon = function(entity) {
CollectionsEditor
.
prototype
.
getState
=
function
(
entity
)
{
if
(
entity
.
error
)
{
return
"
error
"
}
else
if
(
entity
.
warning
||
(
entity
.
dataset
.
outdated
&&
!
this
.
autoOnline
)
||
(
!
entity
.
dataset
.
outdated
&&
entity
.
dataset
.
docs
==
0
)
)
{
}
else
if
(
entity
.
warning
||
(
entity
.
dataset
.
outdated
&&
!
this
.
autoOnline
))
{
return
"
warning
"
}
else
if
(
entity
.
processing
||
entity
.
waiting
||
entity
.
unknown
||
entity
.
dataset
.
outdated
||
entity
.
dataset
.
docs
==
0
)
{
return
"
info
"
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment