diff --git a/js/public/app.js b/js/public/app.js index 6901e49..e8d8f32 100644 --- a/js/public/app.js +++ b/js/public/app.js @@ -85,7 +85,8 @@ app.filter('firstCharacter', function() { app.controller('OcSmsController', ['$scope', '$interval', '$timeout', '$compile', function ($scope, $interval, $timeout, $compile) { - $scope.isLoading = true; + $scope.isConvLoading = true; + $scope.isContactsLoading = true; $scope.buttons = [ {text: "Send"} ]; @@ -145,7 +146,7 @@ app.controller('OcSmsController', ['$scope', '$interval', '$timeout', '$compile' // If contact is not null, we will fetch a conversation for a new contact if (contact != null) { $scope.selectedContact = contact; - $scope.isLoading = true; + $scope.isConvLoading = true; } $scope.messages = []; @@ -173,7 +174,7 @@ app.controller('OcSmsController', ['$scope', '$interval', '$timeout', '$compile' } $scope.totalMessageCount = jsondata['msgCount'] !== undefined ? jsondata['msgCount'] : 0; - $scope.isLoading = false; + $scope.isConvLoading = false; }); $('#app-content').scrollTop(1E10); @@ -393,6 +394,10 @@ app.controller('OcSmsController', ['$scope', '$interval', '$timeout', '$compile' } }); + $scope.$apply(function() { + $scope.isContactsLoading = false; + }); + g_lastMsgDate = jsondata["lastRead"]; }; diff --git a/templates/main.php b/templates/main.php index f5d5285..05773a0 100644 --- a/templates/main.php +++ b/templates/main.php @@ -8,7 +8,9 @@ use \OCA\OcSms\Lib\CountryCodes;
-
-
+
-
-
+
Please choose a conversation on the left menu