Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
davwheat committed Mar 12, 2021
1 parent cf72034 commit 5500c81
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions js/src/admin/components/SettingsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ export default class FakeDataPage extends ExtensionPage {
if (!this.rawLinkData) {
return (
<p>
My settings key (<code>{linkDataSettingsKey}</code>) is missing from your database! Make sure you've run the migrations. If that doesn't work, add it to your
settings table manually with the content <code>[]</code>.
My settings key (<code>{linkDataSettingsKey}</code>) is missing from your database! Make sure you've run the migrations. If that doesn't work, add it
to your settings table manually with the content <code>[]</code>.
</p>
)
} else if (!this.linkData) {
Expand Down Expand Up @@ -78,7 +78,7 @@ export default class FakeDataPage extends ExtensionPage {
}}
disabled={this.loading}
onChange={(val: LinksPosition) => {
console.log(val);
console.log(val)

this.linkPosition = val
this.makeDirty()
Expand Down Expand Up @@ -161,7 +161,7 @@ export default class FakeDataPage extends ExtensionPage {
class="Button Button--icon"
icon="fas fa-arrow-down"
title={translate('link_table.table.tooltips.move_down')}
disabled={(i === (this.linkData?.length || 1) - 1) || this.loading}
disabled={i === (this.linkData?.length || 1) - 1 || this.loading}
onclick={() => {
if (i === (this.linkData?.length || 1) - 1) return

Expand Down Expand Up @@ -299,9 +299,9 @@ export default class FakeDataPage extends ExtensionPage {

return saveSettings({
[linkDataSettingsKey]: JSON.stringify(this.linkData),
"davwheat-custom-sidenav-links.position": this.linkPosition,
"davwheat-custom-sidenav-links.top-spacer": this.showTopSpacer,
"davwheat-custom-sidenav-links.bottom-spacer": this.showBottomSpacer
'davwheat-custom-sidenav-links.position': this.linkPosition,
'davwheat-custom-sidenav-links.top-spacer': this.showTopSpacer,
'davwheat-custom-sidenav-links.bottom-spacer': this.showBottomSpacer,
}).then(this.onSettingsSaved.bind(this))
}

Expand Down

0 comments on commit 5500c81

Please sign in to comment.