Added tag list refresh when upload is finished
This commit is contained in:
parent
c6ce37d537
commit
26eda78745
1 changed files with 15 additions and 2 deletions
|
@ -7,9 +7,10 @@ App.Presenters.PostUploadPresenter = function(
|
||||||
keyboard,
|
keyboard,
|
||||||
promise,
|
promise,
|
||||||
util,
|
util,
|
||||||
auth,
|
|
||||||
api,
|
api,
|
||||||
|
auth,
|
||||||
router,
|
router,
|
||||||
|
tagList,
|
||||||
topNavigationPresenter,
|
topNavigationPresenter,
|
||||||
messagePresenter) {
|
messagePresenter) {
|
||||||
|
|
||||||
|
@ -606,6 +607,7 @@ App.Presenters.PostUploadPresenter = function(
|
||||||
|
|
||||||
function onUploadCompleted() {
|
function onUploadCompleted() {
|
||||||
util.disableExitConfirmation();
|
util.disableExitConfirmation();
|
||||||
|
tagList.refreshTags();
|
||||||
router.navigate('#/posts');
|
router.navigate('#/posts');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -624,4 +626,15 @@ App.Presenters.PostUploadPresenter = function(
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
App.DI.register('postUploadPresenter', ['_', 'jQuery', 'keyboard', 'promise', 'util', 'auth', 'api', 'router', 'topNavigationPresenter', 'messagePresenter'], App.Presenters.PostUploadPresenter);
|
App.DI.register('postUploadPresenter', [
|
||||||
|
'_',
|
||||||
|
'jQuery',
|
||||||
|
'keyboard',
|
||||||
|
'promise',
|
||||||
|
'util',
|
||||||
|
'api',
|
||||||
|
'auth',
|
||||||
|
'router',
|
||||||
|
'tagList',
|
||||||
|
'topNavigationPresenter',
|
||||||
|
'messagePresenter'], App.Presenters.PostUploadPresenter);
|
||||||
|
|
Loading…
Reference in a new issue