Show notification if platform status is not Ready
This commit is contained in:
@@ -967,6 +967,14 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
|
||||
});
|
||||
};
|
||||
|
||||
Client.prototype.getPlatformStatus = function (callback) {
|
||||
get('/api/v1/platform_status', null, function (error, data, status) {
|
||||
if (error) return callback(error);
|
||||
if (status !== 200 || typeof data !== 'object') return callback(new ClientError(status, data));
|
||||
callback(null, data);
|
||||
});
|
||||
};
|
||||
|
||||
Client.prototype.setBackupConfig = function (backupConfig, callback) {
|
||||
post('/api/v1/settings/backup_config', backupConfig, null, function (error, data, status) {
|
||||
if (error) return callback(error);
|
||||
|
||||
Reference in New Issue
Block a user