feat(forums): init post new topic view

This commit is contained in:
OldHawk
2017-07-07 16:08:45 +08:00
parent 011e2212ed
commit 936c6d6170
7 changed files with 54 additions and 24 deletions

View File

@@ -6,10 +6,10 @@
.controller('ForumsPostController', ForumsPostController);
ForumsPostController.$inject = ['$scope', '$state', '$translate', 'Authentication', 'MeanTorrentConfig', 'ForumsService', 'SideOverlay', '$filter', 'NotifycationService',
'marked', 'ModalConfirmService', '$stateParams', 'TopicsService'];
'marked', 'ModalConfirmService', '$stateParams', 'TopicsService', 'localStorageService'];
function ForumsPostController($scope, $state, $translate, Authentication, MeanTorrentConfig, ForumsService, SideOverlay, $filter, NotifycationService,
marked, ModalConfirmService, $stateParams, TopicsService) {
marked, ModalConfirmService, $stateParams, TopicsService, localStorageService) {
var vm = this;
vm.forumsConfig = MeanTorrentConfig.meanTorrentConfig.forumsConfig;
vm.user = Authentication.user;
@@ -22,7 +22,9 @@
autofocus:false,
savable:false,
iconlibrary: 'fa',
resize: 'vertical'
resize: 'vertical',
language: localStorageService.get('storage_user_lang'),
fullscreen: { enable: false}
});
// get forum info by state params