feat(share): add option to automatically render and show README file (#2382)
This commit is contained in:
@@ -115,6 +115,7 @@ type (
|
||||
RemainDownloads int
|
||||
Expire *time.Time
|
||||
ShareView bool
|
||||
ShowReadMe bool
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
@@ -267,7 +267,8 @@ func (l *manager) CreateOrUpdateShare(ctx context.Context, path *fs.URI, args *C
|
||||
}
|
||||
|
||||
props := &types.ShareProps{
|
||||
ShareView: args.ShareView,
|
||||
ShareView: args.ShareView,
|
||||
ShowReadMe: args.ShowReadMe,
|
||||
}
|
||||
|
||||
share, err := shareClient.Upsert(ctx, &inventory.CreateShareParams{
|
||||
|
||||
Reference in New Issue
Block a user