mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-09 06:31:22 +00:00
GUACAMOLE-598: Abort rendering of pages if critical data fails to load (data without which the page is non-functional).
This commit is contained in:
@@ -287,7 +287,7 @@ angular.module('manage').controller('manageConnectionController', ['$scope', '$i
|
||||
PermissionSet.hasConnectionPermission,
|
||||
identifier);
|
||||
|
||||
}, requestService.WARN);
|
||||
}, requestService.DIE);
|
||||
|
||||
// Get history date format
|
||||
$translate('MANAGE_CONNECTION.FORMAT_HISTORY_START').then(function historyDateFormatReceived(historyDateFormat) {
|
||||
|
@@ -245,7 +245,7 @@ angular.module('manage').controller('manageConnectionGroupController', ['$scope'
|
||||
PermissionSet.hasConnectionPermission,
|
||||
identifier);
|
||||
|
||||
}, requestService.WARN);
|
||||
}, requestService.DIE);
|
||||
|
||||
/**
|
||||
* Cancels all pending edits, returning to the main list of connections
|
||||
|
@@ -277,7 +277,7 @@ angular.module('manage').controller('manageSharingProfileController', ['$scope',
|
||||
PermissionSet.hasConnectionPermission,
|
||||
identifier);
|
||||
|
||||
}, requestService.WARN);
|
||||
}, requestService.DIE);
|
||||
|
||||
/**
|
||||
* @borrows Protocol.getNamespace
|
||||
|
@@ -335,7 +335,7 @@ angular.module('manage').controller('manageUserController', ['$scope', '$injecto
|
||||
|
||||
});
|
||||
|
||||
}, requestService.WARN);
|
||||
}, requestService.DIE);
|
||||
|
||||
/**
|
||||
* Returns the URL for the page which manages the user account currently
|
||||
|
@@ -348,7 +348,7 @@ angular.module('manage').directive('connectionPermissionEditor', ['$injector',
|
||||
|
||||
});
|
||||
|
||||
}, requestService.WARN);
|
||||
}, requestService.DIE);
|
||||
|
||||
/**
|
||||
* Updates the permissionsAdded and permissionsRemoved permission sets
|
||||
|
@@ -147,7 +147,7 @@ angular.module('manage').directive('systemPermissionEditor', ['$injector',
|
||||
)
|
||||
.then(function permissionsReceived(permissions) {
|
||||
$scope.permissions = permissions;
|
||||
}, requestService.WARN);
|
||||
}, requestService.DIE);
|
||||
|
||||
/**
|
||||
* Returns whether the current user has permission to change the system
|
||||
|
Reference in New Issue
Block a user