Fix code style
parent
da29c39b88
commit
0bf730e0d4
|
@ -4,7 +4,7 @@
|
|||
###-------------------------------------------------------------###
|
||||
###------------------- HOW TO USE THIS FILE --------------------###
|
||||
###-------------------------------------------------------------###
|
||||
### 1. start express server with `npm run start-test` ###
|
||||
### 1. start express server with `npm run start-api-test` ###
|
||||
### 2. import data by executing script: `./populate-data.sh` ###
|
||||
### 3. change data in app as you need for tests ###
|
||||
### 4. export data state with: `./populate-data.sh -m save` ###
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
<code_scheme name="OPT-CC" version="173">
|
||||
<option name="FORMATTER_TAGS_ENABLED" value="true" />
|
||||
<JSCodeStyleSettings>
|
||||
<option name="SPACES_WITHIN_OBJECT_LITERAL_BRACES" value="true" />
|
||||
<option name="USE_CHAINED_CALLS_GROUP_INDENTS" value="true" />
|
||||
</JSCodeStyleSettings>
|
||||
<TypeScriptCodeStyleSettings>
|
||||
|
|
|
@ -41,7 +41,7 @@ export class CampaignSubmitComponent {
|
|||
.subscribe(campaign => {
|
||||
let redirectSuccessUrl = '../overview/';
|
||||
if (this.campaign._id) {
|
||||
redirectSuccessUrl = '../' + redirectSuccessUrl
|
||||
redirectSuccessUrl = '../' + redirectSuccessUrl;
|
||||
}
|
||||
this.router.navigate([redirectSuccessUrl + campaign._id], {relativeTo: this.route});
|
||||
},
|
||||
|
|
|
@ -38,7 +38,7 @@ export class WarSubmitComponent {
|
|||
|
||||
fileChange(event) {
|
||||
if (this.validExtensions.filter(ext => event.target.files[0] &&
|
||||
event.target.files[0].name.endsWith(ext)).length == 1) {
|
||||
event.target.files[0].name.endsWith(ext)).length === 1) {
|
||||
this.showFileError = false;
|
||||
this.fileList = event.target.files;
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue