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:
+8
-3
@@ -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"];
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user