File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
rubberduckvba.client/src/app/routes/indenter Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
1
import { Component , OnInit } from "@angular/core" ;
2
2
import { FaIconLibrary } from "@fortawesome/angular-fontawesome" ;
3
3
import { fas } from "@fortawesome/free-solid-svg-icons" ;
4
- import { IndenterViewModel } from "../../model/indenter.model" ;
4
+ import { IndenterViewModel , IndenterViewModelClass } from "../../model/indenter.model" ;
5
5
import { ApiClientService } from "../../services/api-client.service" ;
6
6
7
7
@Component ( {
@@ -29,7 +29,7 @@ export class IndenterComponent implements OnInit {
29
29
public isAlignmentOptionsExpanded : boolean = false ;
30
30
public isCommentOptionsExpanded : boolean = false ;
31
31
public isVerticalOptionsExpanded : boolean = false ;
32
- public isApiAboutBoxExpanded : boolean = true ;
32
+ public isApiAboutBoxExpanded : boolean = false ;
33
33
34
34
public isIndenterBusy : boolean = false ;
35
35
@@ -38,7 +38,9 @@ export class IndenterComponent implements OnInit {
38
38
}
39
39
40
40
public get asJson ( ) : string {
41
- return JSON . stringify ( this . _model ) ;
41
+ const copy = new IndenterViewModelClass ( this . _model ) ;
42
+ copy . indentedCode = '' ;
43
+ return JSON . stringify ( copy ) ;
42
44
}
43
45
44
46
public indent ( ) : void {
You can’t perform that action at this time.
0 commit comments