mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 19:54:39 +00:00
refactor(ui): extract about page opening to a direct function call
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
|
||||
import type { SettingsList } from "@/svelte-interface/types/SettingsProps"
|
||||
import { settingsState } from "@/seqta/utils/listeners/SettingsState.ts"
|
||||
import { closeSettings, OpenAboutPage } from "@/SEQTA"
|
||||
</script>
|
||||
|
||||
{#snippet Setting({ title, description, Component, props }: SettingsList) }
|
||||
@@ -96,7 +97,7 @@
|
||||
id: 9,
|
||||
Component: Button,
|
||||
props: {
|
||||
onClick: () => browser.runtime.sendMessage({ type: 'currentTab', info: 'OpenAboutPage' }),
|
||||
onClick: () => { OpenAboutPage(); closeSettings() },
|
||||
text: "Open"
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user