[FIX] website: change default scss file displayed in SCSS editor
By default show the user_custom_rules.scss one as some people would write rules in user_custom_bootstrap_overridden.scss otherwise, not reading the comment inside explaining how that file should be used. task-2698641 X-original-commit: d465b333a403807f09cdd49078f87b102595994e Part-of: odoo/odoo#80499
This commit is contained in:
@@ -69,6 +69,22 @@ var WebsiteAceEditor = AceEditor.extend({
|
||||
}));
|
||||
}).bind(this));
|
||||
},
|
||||
/**
|
||||
* @override
|
||||
*/
|
||||
_switchType(type) {
|
||||
const ret = this._super(...arguments);
|
||||
|
||||
if (type === 'scss') {
|
||||
// By default show the user_custom_rules.scss one as some people
|
||||
// would write rules in user_custom_bootstrap_overridden.scss
|
||||
// otherwise, not reading the comment inside explaining how that
|
||||
// file should be used.
|
||||
this._displayResource('/website/static/src/scss/user_custom_rules.scss');
|
||||
}
|
||||
|
||||
return ret;
|
||||
},
|
||||
/**
|
||||
* @override
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user