Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
baas
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
itminedu
baas
Commits
b8394f72
Commit
b8394f72
authored
Apr 20, 2016
by
Efthymia Bika
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bug when error labels sometimes show up empty
parent
f6a2abbb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
23 deletions
+20
-23
baas/backup.js
baas/backup.js
+0
-13
baas/cloud-list.html
baas/cloud-list.html
+0
-10
baas/config.js
baas/config.js
+20
-0
No files found.
baas/backup.js
View file @
b8394f72
...
...
@@ -15,19 +15,6 @@
var
container
=
""
;
var
errors
=
{
backup_name_empty
:
'
Provide a Backup Name
'
,
backup_name_illegal
:
'
Invalid Entry. Name must start with
'
+
'
\'
Backup
\'
and followed by characters [A-Za-z0-9-_]
'
,
cloud_empty
:
'
Select cloud configuration
'
,
dir_not_chosen
:
'
Provide a local directory
'
,
res_file_illegal
:
'
Invalid Entry. Provide a valid file name
'
,
path_empty
:
'
Provide a path
'
,
passphrase_empty
:
'
Provide a Passphrase
'
,
passphrase_wrong
:
'
Wrong Passphrase
'
,
remove_all_time_empty
:
'
Provide a valid timestamp
'
};
function
toggle_msgs
(
data
,
msgDiv
,
append
)
{
if
(
data
)
{
if
(
append
)
{
...
...
baas/cloud-list.html
View file @
b8394f72
...
...
@@ -88,16 +88,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
});
}
var
errors
=
{
cloud_url_empty
:
'
Provide a Cloud Authentication URL
'
,
cloud_inaccessible
:
'
Cloud URL did not respond as expected
'
,
token_empty
:
'
Provide a user token
'
,
token_error
:
'
Failed to authenticate
'
,
token_cloudless
:
'
No cloud to try this token against
'
,
cloud_name_empty
:
'
Provide a Cloud Name
'
,
cloud_name_illegal
:
'
Invalid Entry. Allowed characters [A-Za-z0-9-_]
'
};
function
check_cloud_name
()
{
var
cloud_name
=
$
(
'
#cloud-name
'
).
val
().
replace
(
/^
\s
+|
\s
+$/gm
,
''
);
if
(
!
cloud_name
)
{
...
...
baas/config.js
View file @
b8394f72
...
...
@@ -73,6 +73,26 @@ var templates_data = {
}
}
var
errors
=
{
backup_name_empty
:
'
Provide a Backup Name
'
,
backup_name_illegal
:
'
Invalid Entry. Name must start with
'
+
'
\'
Backup
\'
and followed by characters [A-Za-z0-9-_]
'
,
cloud_empty
:
'
Select cloud configuration
'
,
dir_not_chosen
:
'
Provide a local directory
'
,
res_file_illegal
:
'
Invalid Entry. Provide a valid file name
'
,
path_empty
:
'
Provide a path
'
,
passphrase_empty
:
'
Provide a Passphrase
'
,
passphrase_wrong
:
'
Wrong Passphrase
'
,
remove_all_time_empty
:
'
Provide a valid timestamp
'
,
cloud_url_empty
:
'
Provide a Cloud Authentication URL
'
,
cloud_inaccessible
:
'
Cloud URL did not respond as expected
'
,
token_empty
:
'
Provide a user token
'
,
token_error
:
'
Failed to authenticate
'
,
token_cloudless
:
'
No cloud to try this token against
'
,
cloud_name_empty
:
'
Provide a Cloud Name
'
,
cloud_name_illegal
:
'
Invalid Entry. Allowed characters [A-Za-z0-9-_]
'
};
function
get_unix_path
(
path
)
{
var
out
=
execFileSync
(
CYGWIN_CYGPATH
,
[
path
]);
var
win_value
=
String
(
out
).
replace
(
/
(\r\n
|
\n
|
\r)
/gm
,
""
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment