1
0
mirror of https://github.com/nextcloud/ocsms.git synced 2026-08-20 12:52:58 +00:00

Also add loader for peerlist

This commit is contained in:
Loic Blot
2016-09-22 23:13:24 +02:00
parent 7ca7154a1e
commit 8569ba96c4
2 changed files with 14 additions and 7 deletions
+8 -3
View File
@@ -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"];
};