Skip to content

Commit

Permalink
fix: module type & error localization
Browse files Browse the repository at this point in the history
  • Loading branch information
dunaevskiy committed Jan 2, 2019
1 parent 081a2fa commit ce77dd7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions src/local/localization/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
"error": {
"001": "Internet Connection Failed",
"400": "Client side error.",
"401": "Your token expired, please sign in again!",
"404": "Page not found.",
"500": "Server error."
"500": "Server error.",
"666": "Ugh, the app isn't so smart. We are sorry, please contact us."
}
}
}
2 changes: 1 addition & 1 deletion src/local/routes/project/name/module/name/edit/index.pug
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ form#editModule

h3 Type
select#moduleType
option(value="plain") Plaintext
//- option(value="plain") Plaintext
option(value="markdown") Markdown
option(value="html") HMTL
option(value="latex") LaTeX
Expand Down
2 changes: 1 addition & 1 deletion src/local/routes/project/name/modules/create/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class Index extends Page {
if (err instanceof errorConnect.InvalidDataError) {
if (err.body.invalid.indexOf('name') >= 0) {
new Noty({
text: 'The module name is too short.',
text: 'The module name is too shorti or non-unique.',
type: 'warning',
timeout: 5000,
}).show();
Expand Down
2 changes: 1 addition & 1 deletion src/local/routes/project/name/modules/create/index.pug
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ form#createModule

h3 Type
select#moduleType
option(value="plain") Plaintext
//- option(value="plain") Plaintext
option(value="markdown") Markdown
option(value="html") HMTL
option(value="latex") LaTeX
Expand Down

0 comments on commit ce77dd7

Please sign in to comment.