Skip to content

Commit

Permalink
Fixed linter issues
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Schauer-Köckeis <[email protected]>
  • Loading branch information
Gepardgame committed Sep 17, 2024
1 parent 9ff2b28 commit 3139754
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions src/views/administration/configuration/General.vue
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,7 @@
variant="outline-primary"
class="px-4"
@click="saveChanges"
:disabled="
this.isDefaultLanguageEnabled && this.defaultLanguage === ''
"
:disabled="this.isDefaultLanguageEnabled && this.defaultLanguage === ''"
>{{ $t('message.update') }}</b-button
>
</b-card-footer>
Expand Down Expand Up @@ -119,7 +117,9 @@ export default {
{
groupName: 'general',
propertyName: 'default.locale',
propertyValue: this.isDefaultLanguageEnabled ? this.defaultLanguage : null,
propertyValue: this.isDefaultLanguageEnabled
? this.defaultLanguage
: null,
},
]);
},
Expand Down Expand Up @@ -159,8 +159,12 @@ export default {
this.isBadgesEnabled = common.toBoolean(item.propertyValue);
break;
case 'default.locale':
this.isDefaultLanguageEnabled = !!common.trimToNull(item.propertyValue);
this.defaultLanguage = this.isDefaultLanguageEnabled ? item.propertyValue : '';
this.isDefaultLanguageEnabled = !!common.trimToNull(
item.propertyValue,
);
this.defaultLanguage = this.isDefaultLanguageEnabled
? item.propertyValue
: '';
break;
}
}
Expand Down

0 comments on commit 3139754

Please sign in to comment.