From 7b3f84d5777d33895d148aae004bb8b6d83c6fa7 Mon Sep 17 00:00:00 2001 From: Mario Lopez Date: Sat, 12 Nov 2022 07:39:14 +1100 Subject: [PATCH] removed checkbox to enable backoffice template --- Our.Iconic/wwwroot/Views/iconic.edit.dialog.html | 7 ++----- Our.Iconic/wwwroot/js/src/iconic.directives.js | 2 +- .../wwwroot/js/src/iconic.prevalues.editor.controller.js | 6 +----- Our.Iconic/wwwroot/lang/en-US.xml | 3 +-- Our.Iconic/wwwroot/lang/es-ES.xml | 3 ++- 5 files changed, 7 insertions(+), 14 deletions(-) diff --git a/Our.Iconic/wwwroot/Views/iconic.edit.dialog.html b/Our.Iconic/wwwroot/Views/iconic.edit.dialog.html index 1c8dab2..3bbd01d 100644 --- a/Our.Iconic/wwwroot/Views/iconic.edit.dialog.html +++ b/Our.Iconic/wwwroot/Views/iconic.edit.dialog.html @@ -29,12 +29,9 @@ Please enter a template - - - - + - + diff --git a/Our.Iconic/wwwroot/js/src/iconic.directives.js b/Our.Iconic/wwwroot/js/src/iconic.directives.js index e682128..d719038 100644 --- a/Our.Iconic/wwwroot/js/src/iconic.directives.js +++ b/Our.Iconic/wwwroot/js/src/iconic.directives.js @@ -7,7 +7,7 @@ function updateTemplate() { if ($scope.package && $scope.icon) { - if ($scope.package && $scope.package.overrideTemplate) { + if ($scope.package && $scope.package.backofficeTemplate) { $scope.template = $scope.package.backofficeTemplate.replace( "{icon}", $scope.icon diff --git a/Our.Iconic/wwwroot/js/src/iconic.prevalues.editor.controller.js b/Our.Iconic/wwwroot/js/src/iconic.prevalues.editor.controller.js index 09f9fe5..a5bc264 100644 --- a/Our.Iconic/wwwroot/js/src/iconic.prevalues.editor.controller.js +++ b/Our.Iconic/wwwroot/js/src/iconic.prevalues.editor.controller.js @@ -60,11 +60,7 @@ $scope.changeConfigType = function(value) { $scope.configType = value; } - - $scope.toggleOverrideTemplate = function() { - $scope.model.package.overrideTemplate = !$scope.model.package.overrideTemplate; - } - + $scope.openCssFilePicker = function() { const config = { select: function(node) { diff --git a/Our.Iconic/wwwroot/lang/en-US.xml b/Our.Iconic/wwwroot/lang/en-US.xml index 08c64c0..e9ee994 100644 --- a/Our.Iconic/wwwroot/lang/en-US.xml +++ b/Our.Iconic/wwwroot/lang/en-US.xml @@ -19,8 +19,7 @@ Enter a valid regex that extracts the individual icon code Template Enter an icon template - Override Backoffice Template - Activate to have a different icon template in your backoffice. i.e. size, color, ... + Overrides the Template value when icon is displayed on the backoffice. Allows to have a different icon template in your backoffice. i.e. size, color, ... CSS file CSS source to style the icon on the backoffice Configuration type diff --git a/Our.Iconic/wwwroot/lang/es-ES.xml b/Our.Iconic/wwwroot/lang/es-ES.xml index 5b64ffe..db19094 100644 --- a/Our.Iconic/wwwroot/lang/es-ES.xml +++ b/Our.Iconic/wwwroot/lang/es-ES.xml @@ -15,7 +15,8 @@ Nombre Seleccionador Plantilla - Reemplazar plantilla en backoffice + Overrides the Template value when icon is displayed on the backoffice. Allows to have a different icon template in your backoffice. i.e. size, color, ... + Reemplazar plantilla en backoffice Archivo Css Archivo fuente de reglas De donde extraer la lista de iconos. Si no se elige one, el utilizado para el Archivo CSS se usara por defecto.