fix cannot refresh page bug in notification
This commit is contained in:
parent
b54d70d9b9
commit
37b1da6ee0
|
@ -14,11 +14,17 @@
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var noticicationScope = $rootScope.$new();
|
||||||
|
|
||||||
|
noticicationScope.refreshPage = function () {
|
||||||
|
$window.location.reload();
|
||||||
|
};
|
||||||
|
|
||||||
lastRefreshPageNotification = ariaNgNotificationService.notifyInPage('', 'Configuration has been modified, please reload the page for the changes to take effect.', {
|
lastRefreshPageNotification = ariaNgNotificationService.notifyInPage('', 'Configuration has been modified, please reload the page for the changes to take effect.', {
|
||||||
delay: false,
|
delay: false,
|
||||||
type: 'info',
|
type: 'info',
|
||||||
templateUrl: 'setting-changed-notification.html',
|
templateUrl: 'setting-changed-notification.html',
|
||||||
scope: $scope,
|
scope: noticicationScope,
|
||||||
onClose: function () {
|
onClose: function () {
|
||||||
lastRefreshPageNotification = null;
|
lastRefreshPageNotification = null;
|
||||||
}
|
}
|
||||||
|
@ -180,10 +186,6 @@
|
||||||
$window.location.reload();
|
$window.location.reload();
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.refreshPage = function () {
|
|
||||||
$window.location.reload();
|
|
||||||
};
|
|
||||||
|
|
||||||
$('[data-toggle="popover"]').popover();
|
$('[data-toggle="popover"]').popover();
|
||||||
|
|
||||||
$rootScope.loadPromise = $timeout(function () {}, 100);
|
$rootScope.loadPromise = $timeout(function () {}, 100);
|
||||||
|
|
Reference in a new issue