gui: Unset current folder on modal close (fixes #7584) (#7586)

This commit is contained in:
Simon Frei 2021-04-20 17:29:38 +02:00 committed by GitHub
parent 031b91c0ed
commit f6375ecbfc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1893,6 +1893,7 @@ angular.module('syncthing.core')
}).one('hidden.bs.modal', function () {
$('.nav-tabs a[href="#folder-general"]').tab('show');
window.location.hash = "";
$scope.currentFolder = {};
});
};