code refactor
This commit is contained in:
parent
3df4656c61
commit
df8f7e32ff
|
@ -32,17 +32,10 @@
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var noticicationScope = $rootScope.$new();
|
|
||||||
|
|
||||||
noticicationScope.refreshPage = function () {
|
|
||||||
$window.location.reload();
|
|
||||||
};
|
|
||||||
|
|
||||||
lastRefreshPageNotification = ariaNgLocalizationService.notifyInPage('', 'Configuration has been modified, please reload the page for the changes to take effect.', {
|
lastRefreshPageNotification = ariaNgLocalizationService.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: 'views/notification-reloadable.html',
|
||||||
scope: noticicationScope,
|
|
||||||
onClose: function () {
|
onClose: function () {
|
||||||
lastRefreshPageNotification = null;
|
lastRefreshPageNotification = null;
|
||||||
}
|
}
|
||||||
|
|
|
@ -346,11 +346,3 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<script id="setting-changed-notification.html" type="text/ng-template">
|
|
||||||
<div class="ui-notification custom-template">
|
|
||||||
<div class="message" ng-bind-html="message"></div>
|
|
||||||
<div class="message">
|
|
||||||
<a class="btn btn-small btn-primary close-notification" ng-click="refreshPage()" translate>Reload Page</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</script>
|
|
||||||
|
|
Reference in a new issue