mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-11-30 12:33:52 -06:00
Fixed some UX issue with the Import/Export tool.
- Couldn't click on the filename control once gets an error. - Encoding is not in alphabetical order.
This commit is contained in:
parent
5141debae7
commit
c4ca781ce2
@ -6,7 +6,7 @@ SELECT *
|
||||
FROM
|
||||
(SELECT pg_encoding_to_char(s.i) AS encoding
|
||||
FROM (SELECT generate_series(0, 100, 1) as i) s) a
|
||||
WHERE encoding != '';
|
||||
WHERE encoding != '' ORDER BY encoding;
|
||||
|
||||
{#
|
||||
-- For future use, Do not delete
|
||||
|
@ -5,7 +5,7 @@
|
||||
SELECT * FROM
|
||||
(SELECT pg_encoding_to_char(s.i) AS encoding
|
||||
FROM (SELECT generate_series(0, 100, 1) as i) s) a
|
||||
WHERE encoding != '';
|
||||
WHERE encoding != '' ORDER BY encoding;
|
||||
|
||||
{#
|
||||
-- For future use, Do not delete
|
||||
|
@ -2201,6 +2201,16 @@
|
||||
|
||||
// Set selected value into the model
|
||||
this.model.set(name, decodeURI(value));
|
||||
},
|
||||
clearInvalid: function() {
|
||||
Backform.InputControl.prototype.clearInvalid.apply(this, arguments);
|
||||
this.$el.removeClass("pgadmin-file-has-error");
|
||||
return this;
|
||||
},
|
||||
updateInvalid: function() {
|
||||
Backform.InputControl.prototype.updateInvalid.apply(this, arguments);
|
||||
// Introduce a new class to fix the error icon placement on the control
|
||||
this.$el.addClass("pgadmin-file-has-error");
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -18,4 +18,10 @@
|
||||
padding-top: 10px;
|
||||
z-index: 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.pgadmin-file-has-error {
|
||||
.pgadmin-controls:before {
|
||||
right: 40px !important;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user