1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-02-19 13:54:25 +01:00

fix double insertion of widgets button in home page editor

This commit is contained in:
Sylvain 2020-01-28 09:24:55 +01:00
parent 49b3a54afb
commit 8d8c9a8af5

View File

@ -138,7 +138,7 @@ Application.Controllers.controller('SettingsController', ['$scope', '$rootScope'
};
// Extend the options for summernote editor, with special tools for home page
$scope.summernoteOptsHomePage = Object.assign({}, $rootScope.summernoteOpts);
$scope.summernoteOptsHomePage = angular.copy($rootScope.summernoteOpts);
$scope.summernoteOptsHomePage.toolbar[5][1].push('nugget'); // toolbar -> insert -> nugget
$scope.summernoteOptsHomePage.nugget = {
label: '\uF12E',