Feature: add auto open share modal config for global. (#474)

* feat(admin): add auto open share modal config for global.

* feat(upload): Apply the flag that disables the automatic open create share modal.

* fix: remove migration and add new config variable to seed script

* chore(translations): improve auto open share modal description

* refactor: run formatter

---------

Co-authored-by: Elias Schneider <login@eliasschneider.com>
This commit is contained in:
Ivan Li
2024-06-10 17:32:52 +08:00
committed by GitHub
parent 1c7832ad1f
commit 4fd29037a0
10 changed files with 1652 additions and 18 deletions

View File

@@ -46,9 +46,8 @@ export class ShareService {
let expirationDate: Date;
// If share is created by a reverse share token override the expiration date
const reverseShare = await this.reverseShareService.getByToken(
reverseShareToken,
);
const reverseShare =
await this.reverseShareService.getByToken(reverseShareToken);
if (reverseShare) {
expirationDate = reverseShare.shareExpiration;
} else {