mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-01 01:36:05 -04:00
Room topic: if the request fails, show the error in the feedback
This commit is contained in:
parent
af44e9556d
commit
14a9652324
@ -67,7 +67,14 @@ angular.module('RoomController', ['ngSanitize', 'matrixFilter', 'mFileInput'])
|
|||||||
},
|
},
|
||||||
updateTopic: function() {
|
updateTopic: function() {
|
||||||
console.log("Updating topic to "+$scope.topic.newTopicText);
|
console.log("Updating topic to "+$scope.topic.newTopicText);
|
||||||
matrixService.setTopic($scope.room_id, $scope.topic.newTopicText);
|
matrixService.setTopic($scope.room_id, $scope.topic.newTopicText).then(
|
||||||
|
function() {
|
||||||
|
},
|
||||||
|
function(error) {
|
||||||
|
$scope.feedback = "Request failed: " + error.data.error;
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
$scope.topic.isEditing = false;
|
$scope.topic.isEditing = false;
|
||||||
},
|
},
|
||||||
cancelEdit: function() {
|
cancelEdit: function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user