Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
minerva
core
Commits
bc739e45
Commit
bc739e45
authored
Jan 08, 2021
by
Piotr Gawron
Browse files
update on sorting order preference is not important
parent
0cd0989f
Pipeline
#36171
passed with stage
in 15 minutes and 15 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
CHANGELOG
View file @
bc739e45
...
...
@@ -6,6 +6,8 @@ minerva (15.1.2) stable; urgency=medium
in
error
(#
1440
)
*
Bug
fix
:
colors
for
values
in
exported
image
were
incorrect
for
intermediate
values
,
like
0.5
(#
1442
)
*
Bug
fix
:
when
there
is
a
problem
with
updating
sorting
preferences
no
error
is
raised
but
silent
warning
is
reported
in
the
console
(#
1426
)
--
Piotr
Gawron
<
piotr
.
gawron
@
uni
.
lu
>
Thu
,
7
Jan
2021
15
:
00
:
00
+
0200
...
...
frontend-js/src/main/js/gui/admin/AbstractAdminPanel.js
View file @
bc739e45
...
...
@@ -11,7 +11,9 @@ var GuiConnector = require('../../GuiConnector');
var
logger
=
require
(
'
../../logger
'
);
var
Functions
=
require
(
'
../../Functions
'
);
var
NetworkError
=
require
(
'
../../NetworkError
'
);
var
Promise
=
require
(
"
bluebird
"
);
var
HttpStatus
=
require
(
'
http-status-codes
'
);
/**
*
...
...
@@ -67,7 +69,14 @@ AbstractAdminPanel.prototype.bindUserGuiPreference = function (params) {
var
data
=
new
UserPreferences
();
data
.
setGuiPreference
(
params
.
preferenceName
,
newValue
);
return
self
.
getServerConnector
().
updateUserPreferences
({
user
:
user
,
preferences
:
data
});
return
self
.
getServerConnector
().
updateUserPreferences
({
user
:
user
,
preferences
:
data
})
.
catch
(
function
(
error
)
{
if
(
error
instanceof
NetworkError
&&
error
.
statusCode
===
HttpStatus
.
CONFLICT
)
{
logger
.
warn
(
"
Problem with updating preference
"
);
}
else
{
throw
error
;
}
});
}
}).
catch
(
GuiConnector
.
alert
);
});
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment