Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
moecube
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
JoyJ
moecube
Commits
0083e502
Commit
0083e502
authored
Oct 21, 2016
by
神楽坂玲奈
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'v3' of github.com:mycard/mycard into v3
parents
518c78ba
48dfb3ba
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
10 deletions
+23
-10
app/app-detail.component.html
app/app-detail.component.html
+7
-3
app/app-detail.component.ts
app/app-detail.component.ts
+10
-2
app/apps.service.ts
app/apps.service.ts
+2
-2
i18n/zh-CN.json
i18n/zh-CN.json
+4
-3
No files found.
app/app-detail.component.html
View file @
0083e502
...
@@ -152,9 +152,13 @@
...
@@ -152,9 +152,13 @@
</div>
</div>
<div
id=
"local-files"
role=
"tabpanel"
class=
"tab-pane fade"
>
<div
id=
"local-files"
role=
"tabpanel"
class=
"tab-pane fade"
>
<button
type=
"button"
(click)=
"uninstall()"
>
<div
class=
"list-inline"
>
{{'uninstall'|translate}}
<button
type=
"button"
[disabled]=
"!isInstalled"
(click)=
"uninstall()"
>
</button>
{{'uninstall'|translate}}
</button>
<i
*ngIf=
"uninstalling"
class=
"fa fa-circle-o-notch fa-spin fa-3x fa-fw"
></i>
<span
class=
"sr-only"
>
Loading...
</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
...
...
app/app-detail.component.ts
View file @
0083e502
...
@@ -113,9 +113,17 @@ export class AppDetailComponent {
...
@@ -113,9 +113,17 @@ export class AppDetailComponent {
}
}
uninstalling
:
boolean
;
uninstall
(
id
:
string
)
{
uninstall
(
id
:
string
)
{
id
=
this
.
currentApp
.
id
;
if
(
confirm
(
"
确认删除?
"
))
{
this
.
appsService
.
uninstall
(
id
);
this
.
uninstalling
=
true
;
id
=
this
.
currentApp
.
id
;
this
.
appsService
.
uninstall
(
id
).
then
(()
=>
{
this
.
uninstalling
=
false
;
}
);
}
}
}
...
...
app/apps.service.ts
View file @
0083e502
...
@@ -250,9 +250,9 @@ export class AppsService {
...
@@ -250,9 +250,9 @@ export class AppsService {
// 删除本目录
// 删除本目录
files
.
push
(
'
.
'
);
files
.
push
(
'
.
'
);
let
install_dir
=
this
.
searchApp
(
id
).
local
.
path
;
let
install_dir
=
this
.
searchApp
(
id
).
local
.
path
;
files
return
files
.
map
((
file
)
=>
.
map
((
file
)
=>
()
=>
Promise
.
resolve
(
path
.
join
(
install_dir
,
file
)
)
()
=>
path
.
join
(
install_dir
,
file
)
)
)
.
reduce
((
promise
:
Promise
<
string
>
,
task
)
=>
.
reduce
((
promise
:
Promise
<
string
>
,
task
)
=>
promise
.
then
(
task
).
then
(
this
.
deleteFile
)
promise
.
then
(
task
).
then
(
this
.
deleteFile
)
...
...
i18n/zh-CN.json
View file @
0083e502
...
@@ -3,7 +3,8 @@
...
@@ -3,7 +3,8 @@
"community"
:
"社区"
,
"community"
:
"社区"
,
"settings"
:
"设置"
,
"settings"
:
"设置"
,
"uninstall"
:
"卸载"
,
"uninstall"
:
"卸载"
,
"general"
:
"常规"
,
"general"
:
"常规"
,
"updates"
:
"更新"
,
"updates"
:
"更新"
,
"local files"
:
"本地文件"
"local files"
:
"本地文件"
,
"uninstall confirm"
:
"这将删除所有本地内容,确认执行?"
}
}
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