1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

switch to unified notifications

This commit is contained in:
Luke Pulverenti 2016-07-22 13:30:39 -04:00
parent fa438393af
commit cec6b66c27
19 changed files with 200 additions and 514 deletions

View file

@ -71,7 +71,7 @@
function showGeneralError() {
Dashboard.hideModalLoadingMsg();
Dashboard.hideLoadingMsg();
Dashboard.alert({
message: Globalize.translate('DefaultErrorMessage')
});
@ -138,12 +138,12 @@
function acceptInvitation(page, id) {
Dashboard.showModalLoadingMsg();
Dashboard.showLoadingMsg();
// Add/Update connect info
ConnectionManager.acceptServer(id).then(function () {
Dashboard.hideModalLoadingMsg();
Dashboard.hideLoadingMsg();
loadPage(page);
}, function () {
@ -154,12 +154,12 @@
function deleteServer(page, serverId) {
Dashboard.showModalLoadingMsg();
Dashboard.showLoadingMsg();
// Add/Update connect info
ConnectionManager.deleteServer(serverId).then(function () {
Dashboard.hideModalLoadingMsg();
Dashboard.hideLoadingMsg();
loadPage(page);
@ -172,12 +172,12 @@
function rejectInvitation(page, id) {
Dashboard.showModalLoadingMsg();
Dashboard.showLoadingMsg();
// Add/Update connect info
ConnectionManager.rejectServer(id).then(function () {
Dashboard.hideModalLoadingMsg();
Dashboard.hideLoadingMsg();
loadPage(page);