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:
Khushboo Vashi 2017-08-09 16:44:29 +05:30 committed by Ashesh Vashi
parent 5141debae7
commit c4ca781ce2
4 changed files with 19 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

@ -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");
}
});

View File

@ -18,4 +18,10 @@
padding-top: 10px;
z-index: 1;
}
}
}
.pgadmin-file-has-error {
.pgadmin-controls:before {
right: 40px !important;
}
}