From d2a1ed3a427bcfb9c6c0fa737efbdf270385793b Mon Sep 17 00:00:00 2001 From: Tiago Melo Date: Wed, 27 May 2020 12:51:04 +0000 Subject: [PATCH] mgr/dashboard: Fix dashboard languages make configuration We have to manually pass DASHBOARD_FRONTEND_LANGS to the build command of the dashboard. This was a regression introduced in 1a6a8381a55e59a3c5e6b7fbc6c525f0cac2b854. Fixes: https://tracker.ceph.com/issues/45720 Signed-off-by: Tiago Melo --- src/pybind/mgr/dashboard/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pybind/mgr/dashboard/CMakeLists.txt b/src/pybind/mgr/dashboard/CMakeLists.txt index 1861d3c738f2..e94817d4fa13 100644 --- a/src/pybind/mgr/dashboard/CMakeLists.txt +++ b/src/pybind/mgr/dashboard/CMakeLists.txt @@ -92,7 +92,7 @@ endif() add_npm_command( OUTPUT "${CMAKE_SOURCE_DIR}/src/pybind/mgr/dashboard/frontend/dist" - COMMAND npm run build:localize -- ${npm_args} + COMMAND DASHBOARD_FRONTEND_LANGS="${DASHBOARD_FRONTEND_LANGS}" npm run build:localize -- ${npm_args} DEPENDS ${frontend_src} frontend/node_modules WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/src/pybind/mgr/dashboard/frontend COMMENT "dashboard frontend is being created" -- 2.47.3