Skip to content

Commit ccf1002

Browse files
committed
fixed #467
1 parent 803e7c5 commit ccf1002

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

quick-start/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
"material-design-icons-iconfont": "^3.0.3",
3737
"material-design-lite": "^1.3.0",
3838
"mdi": "1.8.36",
39+
"ng2-device-detector": "^1.0.0",
3940
"rxjs": "^5.1.0",
4041
"semver": "^5.3.0",
4142
"sockjs-client": "^1.1.2",

quick-start/src/main/ui/app/entities/entities.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
<ng-template ngFor let-file [ngForOf]="(plugin.files | objectToArray)">
103103
<div class="toolbar">
104104
<i class="fa fa-bug" *ngIf="pluginHasError(flow, plugin.pluginType)"></i>
105-
<span class="plugin-path">{{plugin.pluginPath}}/{{file.__key}}</span>
105+
<span class="plugin-path">{{plugin.pluginPath}}{{deviceInfo.os === 'windows' ? '\\' : '/'}}{{file.__key}}</span>
106106
<span *ngIf="isSaving">Saving <i class="fa fa-spinner fa-pulse"></i></span>
107107
<div class="pull-right save-button">
108108
<mdl-button

quick-start/src/main/ui/app/entities/entities.component.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ import { DeployService } from '../deploy/deploy.service';
2222

2323
import { CodemirrorComponent } from '../codemirror';
2424

25+
import { Ng2DeviceService } from 'ng2-device-detector';
26+
2527
import * as _ from 'lodash';
2628

2729
@Component({
@@ -41,6 +43,7 @@ export class EntitiesComponent implements OnInit, OnDestroy {
4143
isSaving = false;
4244
mlcpOptions: any;
4345
entitiesReady: EventEmitter<boolean> = new EventEmitter();
46+
deviceInfo = null;
4447

4548
private paramListener: any;
4649

@@ -64,8 +67,10 @@ export class EntitiesComponent implements OnInit, OnDestroy {
6467
private dialogService: MdlDialogService,
6568
private jobListener: JobListenerService,
6669
private route: ActivatedRoute,
67-
private router: Router
70+
private router: Router,
71+
private deviceService: Ng2DeviceService
6872
) {
73+
this.deviceInfo = this.deviceService.getDeviceInfo();
6974
deployService.onDeploy.subscribe(() => {
7075
this.getEntities();
7176
});

0 commit comments

Comments
 (0)