From a3b5d34bd99a5ffcc92f9acc80b1a1d05f2ef78b Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Tue, 27 Sep 2016 14:03:47 +0200 Subject: [PATCH] fix import by changing random color call --- js/app/controllers/importcontroller.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/app/controllers/importcontroller.js b/js/app/controllers/importcontroller.js index 2d5c806ae1..20dabcf3f3 100644 --- a/js/app/controllers/importcontroller.js +++ b/js/app/controllers/importcontroller.js @@ -26,8 +26,8 @@ * Description: Takes care of importing calendars */ -app.controller('ImportController', ['$scope', '$filter', 'CalendarService', 'VEventService', '$uibModalInstance', 'files', 'ImportFileWrapper', - function($scope, $filter, CalendarService, VEventService, $uibModalInstance, files, ImportFileWrapper) { +app.controller('ImportController', ['$scope', '$filter', 'CalendarService', 'VEventService', '$uibModalInstance', 'files', 'ImportFileWrapper', 'ColorUtility', + function($scope, $filter, CalendarService, VEventService, $uibModalInstance, files, ImportFileWrapper, ColorUtility) { 'use strict'; $scope.nameSize = 25; @@ -60,7 +60,7 @@ app.controller('ImportController', ['$scope', '$filter', 'CalendarService', 'VEv if (fileWrapper.selectedCalendar === 'new') { var name = fileWrapper.splittedICal.name || fileWrapper.file.name; - var color = fileWrapper.splittedICal.color || randColour(); // jshint ignore:line + var color = fileWrapper.splittedICal.color || ColorUtility.randomColor(); var components = []; if (fileWrapper.splittedICal.vevents.length > 0) {