Must contain since it is a path
This commit is contained in:
@@ -194,8 +194,8 @@ app.controller('RestoreController', ['$scope', 'Client', function ($scope, Clien
|
||||
return;
|
||||
}
|
||||
|
||||
if ($scope.backupId.indexOf('box') !== 0) {
|
||||
$scope.error.generic = 'Backup id must start with "box"';
|
||||
if ($scope.backupId.indexOf('box') === -1) {
|
||||
$scope.error.generic = 'Backup id must contain "box"';
|
||||
$scope.error.backupId = true;
|
||||
$scope.busy = false;
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user