fix: minor data import rebrand compatibility
This commit is contained in:
parent
473cb16093
commit
7b49882f5f
3 changed files with 7 additions and 4 deletions
|
|
@ -305,5 +305,6 @@
|
|||
"css/email.css": "public/scss/email.scss",
|
||||
"js/barcode_scanner.min.js": "public/js/frappe/barcode_scanner/quagga.js",
|
||||
"js/user_profile_controller.min.js": "desk/page/user_profile/user_profile_controller.js",
|
||||
"css/login.css": "public/scss/login.scss"
|
||||
"css/login.css": "public/scss/login.scss",
|
||||
"js/data_import_tools.min.js": "public/js/frappe/data_import/index.js"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -188,12 +188,13 @@ frappe.data_import.ImportPreview = class ImportPreview {
|
|||
.join(',');
|
||||
this.datatable.style.setStyle(row_classes, {
|
||||
pointerEvents: 'none',
|
||||
backgroundColor: frappe.ui.color.get_color_shade('white', 'light'),
|
||||
color: frappe.ui.color.get_color_shade('black', 'extra-light')
|
||||
backgroundColor: frappe.ui.color.get_color_shade('gray', 'extra-light'),
|
||||
color: frappe.ui.color.get_color_shade('gray', 'dark')
|
||||
});
|
||||
}
|
||||
|
||||
add_actions() {
|
||||
console.log("add_actions")
|
||||
let actions = [
|
||||
{
|
||||
label: __('Map Columns'),
|
||||
|
|
|
|||
|
|
@ -39,7 +39,8 @@ frappe.ui.color = {
|
|||
};
|
||||
|
||||
if(Object.keys(shades).includes(shade)) {
|
||||
return frappe.ui.color_map[color_name][shades[shade]];
|
||||
const color = this.get_color(color_name)
|
||||
return color[shades[shade]];
|
||||
} else {
|
||||
// eslint-disable-next-line
|
||||
console.warn(`'shade' can be one of ${Object.keys(shades)} and not ${shade}`);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue