mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-07-01 00:18:19 +02:00
feat(forums): top status of topic set and showed
This commit is contained in:
@@ -264,6 +264,24 @@
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* beginTopTopic
|
||||
* @param t
|
||||
*/
|
||||
vm.beginTopTopic = function (t) {
|
||||
var topic = new TopicsService({
|
||||
forum: vm.forum._id,
|
||||
_id: t._id
|
||||
});
|
||||
|
||||
topic.$toggleTopicTopStatus(function (res) {
|
||||
vm.topic = res;
|
||||
NotifycationService.showSuccessNotify('FORUMS.TOPIC_TOGGLE_TOP_SUCCESSFULLY');
|
||||
}, function (res) {
|
||||
NotifycationService.showErrorNotify(res.data.message, 'FORUMS.TOPIC_TOGGLE_TOP_FAILED');
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* beginDeleteReply
|
||||
* @param reply
|
||||
|
||||
Reference in New Issue
Block a user