Ensure the app install dialog closes and releases the backdrop when moving to other views

Fixes #201
This commit is contained in:
Johannes Zellner
2017-04-06 17:39:43 +02:00
parent d709a5cfe4
commit 94d7bc5328
2 changed files with 7 additions and 7 deletions

View File

@@ -20,15 +20,15 @@ angular.module('Application').controller('AppStoreController', ['$scope', '$loca
$scope.appstoreConfig = null;
$scope.mailConfig = {};
$scope.showRequestUpgrade = function () {
$scope.showView = function (view) {
// wait for dialog to be fully closed to avoid modal behavior breakage when moving to a different view already
$('#appInstallModal').on('hidden.bs.modal', function () {
$('.modal').on('hidden.bs.modal', function () {
$scope.appInstall.reset();
$('#appInstallModal').off('hidden.bs.modal');
$location.path('/settings');
$('.modal').off('hidden.bs.modal');
$location.path(view);
});
$('#appInstallModal').modal('hide');
$('.modal').modal('hide');
};
$scope.appInstall = {