Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
L
luna
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ops
luna
Commits
3dba488e
Commit
3dba488e
authored
Oct 24, 2019
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Update] 更改弹出消息时间
parent
9c09491a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
asset-tree.component.ts
src/app/elements/asset-tree/asset-tree.component.ts
+2
-2
No files found.
src/app/elements/asset-tree/asset-tree.component.ts
View file @
3dba488e
...
...
@@ -303,12 +303,12 @@ export class ElementAssetTreeComponent implements OnInit, OnDestroy {
this
.
_http
.
favoriteAsset
(
assetId
,
false
).
subscribe
(()
=>
{
const
i
=
this
.
favoriteAssets
.
indexOf
(
assetId
);
this
.
favoriteAssets
.
splice
(
i
,
1
);
this
.
toastr
.
success
(
translate
(
'
Favorite'
)
+
' '
+
translate
(
'success'
)
);
this
.
toastr
.
success
(
translate
(
'
Disfavor'
)
+
' '
+
translate
(
'success'
),
''
,
{
timeOut
:
2000
}
);
});
}
else
{
this
.
_http
.
favoriteAsset
(
assetId
,
true
).
subscribe
(()
=>
{
this
.
favoriteAssets
.
push
(
assetId
);
this
.
toastr
.
success
(
translate
(
'
Disfavor'
)
+
' '
+
translate
(
'success'
)
);
this
.
toastr
.
success
(
translate
(
'
Favorite'
)
+
' '
+
translate
(
'success'
),
''
,
{
timeOut
:
2000
}
);
});
}
}
...
...
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