remove tooltip when the page change

This commit is contained in:
tdurieux
2021-04-09 10:13:59 +02:00
parent 9ebf6a52f7
commit 41f300739f

View File

@@ -214,6 +214,10 @@ angular
getStat();
})
.controller("dashboardController", function($scope, $http, $location) {
$scope.$on('$routeChangeStart', function() {
// remove tooltip
$('[data-toggle="tooltip"]').tooltip('dispose')
});
$scope.$watch("user.status", () => {
if ($scope.user == null) {
$location.url("/");