From e6c14f097e50278bbcf377ecb00e692bfae22ff9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karsten=20Ku=CC=88pper?= Date: Fri, 22 Nov 2024 14:28:09 -0500 Subject: [PATCH] add button to publish all languages --- admin/app/scripts/controllers/track.js | 6 ++++++ admin/app/views/pages/track.html | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/admin/app/scripts/controllers/track.js b/admin/app/scripts/controllers/track.js index 1df1c11e..831459e6 100644 --- a/admin/app/scripts/controllers/track.js +++ b/admin/app/scripts/controllers/track.js @@ -389,6 +389,12 @@ angular.module('bmmApp') }); }; + $scope.publishAllLanguages = function() { + $.each($scope.model.translations, function() { + this.is_visible = true; + }); + } + $scope.switchLanguage = function(newLang, oldLang) { if (typeof oldLang!=='undefined') { $.each($scope.model.translations, function(index) { diff --git a/admin/app/views/pages/track.html b/admin/app/views/pages/track.html index e0a5aff8..2bb33bf0 100644 --- a/admin/app/views/pages/track.html +++ b/admin/app/views/pages/track.html @@ -140,7 +140,9 @@

{{init.translation.page.editor.languages}}