Linting
This commit is contained in:
parent
f0a8732631
commit
d19a700612
|
@ -54,7 +54,7 @@
|
||||||
$: isLicenseLocked =
|
$: isLicenseLocked =
|
||||||
(isCloud && !cloudPremium) || (!isCloud && !selfhostPremium)
|
(isCloud && !cloudPremium) || (!isCloud && !selfhostPremium)
|
||||||
|
|
||||||
const onConfigUpdate = config => {
|
const onConfigUpdate = () => {
|
||||||
if (!mounted || updated || !init) {
|
if (!mounted || updated || !init) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,12 +34,6 @@
|
||||||
loading = true
|
loading = true
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// Upload logo if required
|
|
||||||
if ($values.logo && !$values.logo.url) {
|
|
||||||
await uploadLogo($values.logo)
|
|
||||||
await organisation.init()
|
|
||||||
}
|
|
||||||
|
|
||||||
const config = {
|
const config = {
|
||||||
isSSOEnforced: $values.isSSOEnforced,
|
isSSOEnforced: $values.isSSOEnforced,
|
||||||
company: $values.company ?? "",
|
company: $values.company ?? "",
|
||||||
|
@ -47,11 +41,6 @@
|
||||||
analyticsEnabled: $values.analyticsEnabled,
|
analyticsEnabled: $values.analyticsEnabled,
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remove logo if required
|
|
||||||
if (!$values.logo) {
|
|
||||||
config.logoUrl = ""
|
|
||||||
}
|
|
||||||
|
|
||||||
// Update settings
|
// Update settings
|
||||||
await organisation.save(config)
|
await organisation.save(config)
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|
Loading…
Reference in New Issue