Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
mycard
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
syntax_j
mycard
Commits
f749fa29
Commit
f749fa29
authored
Sep 12, 2016
by
h3remi7
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add select install dir
parent
b99d8788
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
app/app-detail.component.html
app/app-detail.component.html
+1
-1
app/app-detail.component.ts
app/app-detail.component.ts
+8
-1
No files found.
app/app-detail.component.html
View file @
f749fa29
...
@@ -104,7 +104,7 @@
...
@@ -104,7 +104,7 @@
<div
class=
"input-group"
>
<div
class=
"input-group"
>
<input
type=
"text"
[(ngModel)]=
"appsService.installConfig.installDir"
name=
"installDir"
class=
"form-control"
placeholder=
"安装位置"
>
<input
type=
"text"
[(ngModel)]=
"appsService.installConfig.installDir"
name=
"installDir"
class=
"form-control"
placeholder=
"安装位置"
>
<span
class=
"input-group-btn"
>
<span
class=
"input-group-btn"
>
<button
class=
"btn btn-secondary"
type=
"button"
>
浏览
</button>
<button
(click)=
"openDir()"
class=
"btn btn-secondary"
type=
"button"
>
浏览
</button>
</span>
</span>
</div>
</div>
</div>
</div>
...
...
app/app-detail.component.ts
View file @
f749fa29
...
@@ -14,6 +14,8 @@ declare var $;
...
@@ -14,6 +14,8 @@ declare var $;
export
class
AppDetailComponent
{
export
class
AppDetailComponent
{
platform
=
process
.
platform
;
platform
=
process
.
platform
;
electron
=
window
[
'
System
'
].
_nodeRequire
(
'
electron
'
);
constructor
(
private
appsService
:
AppsService
,
private
routingService
:
RoutingService
)
{
constructor
(
private
appsService
:
AppsService
,
private
routingService
:
RoutingService
)
{
}
}
_currentApp
;
_currentApp
;
...
@@ -126,8 +128,13 @@ export class AppDetailComponent {
...
@@ -126,8 +128,13 @@ export class AppDetailComponent {
}
}
$
(
"
#install-modal
"
).
modal
(
"
hide
"
);
$
(
"
#install-modal
"
).
modal
(
"
hide
"
);
}
openDir
()
{
let
dir
=
this
.
electron
.
remote
.
dialog
.
showOpenDialog
({
properties
:
[
'
openFile
'
,
'
openDirectory
'
]});
console
.
log
(
dir
);
this
.
appsService
.
installConfig
.
installDir
=
dir
[
0
];
return
dir
[
0
];
}
}
}
}
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