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:
@@ -72,7 +72,7 @@ export default function AppShellDemo() {
|
||||
};
|
||||
|
||||
const updateConfigVariable = (configVariable: UpdateConfig) => {
|
||||
if (configVariable.key === 'general.appUrl') {
|
||||
if (configVariable.key === "general.appUrl") {
|
||||
configVariable.value = sanitizeUrl(configVariable.value);
|
||||
}
|
||||
|
||||
@@ -91,7 +91,7 @@ export default function AppShellDemo() {
|
||||
};
|
||||
|
||||
const sanitizeUrl = (url: string): string => {
|
||||
return url.endsWith('/') ? url.slice(0, -1) : url;
|
||||
return url.endsWith("/") ? url.slice(0, -1) : url;
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
|
||||
Reference in New Issue
Block a user