Commit 3dba488e authored by ibuler's avatar ibuler

[Update] 更改弹出消息时间

parent 9c09491a
......@@ -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});
});
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment