fix: Backport missing commits to develop branch (#25305)

This commit is contained in:
Nabin Hait
2021-04-13 15:46:01 +05:30
committed by GitHub
parent 2fe3056fa2
commit 10c61376e3
65 changed files with 739 additions and 152 deletions

View File

@@ -0,0 +1,14 @@
// Copyright (c) 2019, Frappe Technologies Pvt. Ltd. and Contributors
// MIT License. See license.txt
frappe.ui.form.on('Website Theme', {
validate(frm) {
let theme_scss = frm.doc.theme_scss;
if (theme_scss && theme_scss.includes('frappe/public/scss/website')
&& !theme_scss.includes('erpnext/public/scss/website')
) {
frm.set_value('theme_scss',
`${frm.doc.theme_scss}\n@import "erpnext/public/scss/website";`);
}
}
});