From a4dba8d3faa1eac0469b6aaf2134feedf42e0593 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Sat, 15 Jul 2023 18:54:50 -0400 Subject: [PATCH] fix: #11804, fix direction of dropdown on rtl --- src/middleware/render.js | 1 + src/views/admin/extend/widgets.tpl | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/middleware/render.js b/src/middleware/render.js index 1a236e710a..3bbf6a6887 100644 --- a/src/middleware/render.js +++ b/src/middleware/render.js @@ -273,6 +273,7 @@ module.exports = function (middleware) { const version = nconf.get('version'); res.locals.config.userLang = res.locals.config.acpLang || res.locals.config.userLang; + res.locals.config.isRTL = results.languageDirection === 'rtl'; const templateValues = { config: res.locals.config, configJSON: jsesc(JSON.stringify(res.locals.config), { isScriptContext: true }), diff --git a/src/views/admin/extend/widgets.tpl b/src/views/admin/extend/widgets.tpl index 2e119fcbc1..052c54fe4c 100644 --- a/src/views/admin/extend/widgets.tpl +++ b/src/views/admin/extend/widgets.tpl @@ -13,7 +13,7 @@ -