aboutsummaryrefslogtreecommitdiffstats
path: root/src/features/nightlyBuilds
diff options
context:
space:
mode:
authorLibravatar Markus Hatvan <markus_hatvan@aon.at>2021-10-14 23:32:05 +0200
committerLibravatar GitHub <noreply@github.com>2021-10-15 03:02:05 +0530
commit137555821f172e4eadc7cf099d4270ae8fc1374e (patch)
tree693882bbf7a6b2a24b5a727091d09586d0371007 /src/features/nightlyBuilds
parentNew translations en-US.json (Spanish) (#2072) (diff)
downloadferdium-app-137555821f172e4eadc7cf099d4270ae8fc1374e.tar.gz
ferdium-app-137555821f172e4eadc7cf099d4270ae8fc1374e.tar.zst
ferdium-app-137555821f172e4eadc7cf099d4270ae8fc1374e.zip
chore: convert components to tsx (#2071)
Diffstat (limited to 'src/features/nightlyBuilds')
-rw-r--r--src/features/nightlyBuilds/index.ts (renamed from src/features/nightlyBuilds/index.js)10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/features/nightlyBuilds/index.js b/src/features/nightlyBuilds/index.ts
index 89bcb5cb3..14afbaf1b 100644
--- a/src/features/nightlyBuilds/index.js
+++ b/src/features/nightlyBuilds/index.ts
@@ -14,26 +14,26 @@ export default function initialize() {
14 } 14 }
15 15
16 function toggleFeature() { 16 function toggleFeature() {
17 if (window.ferdi.stores.settings.app.nightly) { 17 if (window['ferdi'].stores.settings.app.nightly) {
18 window.ferdi.actions.settings.update({ 18 window['ferdi'].actions.settings.update({
19 type: 'app', 19 type: 'app',
20 data: { 20 data: {
21 nightly: false, 21 nightly: false,
22 }, 22 },
23 }); 23 });
24 window.ferdi.actions.user.update({ 24 window['ferdi'].actions.user.update({
25 userData: { 25 userData: {
26 nightly: false, 26 nightly: false,
27 }, 27 },
28 }); 28 });
29 } else { 29 } else {
30 // We need to close the settings, otherwise the modal will be drawn under the settings window 30 // We need to close the settings, otherwise the modal will be drawn under the settings window
31 window.ferdi.actions.ui.closeSettings(); 31 window['ferdi'].actions.ui.closeSettings();
32 showModal(); 32 showModal();
33 } 33 }
34 } 34 }
35 35
36 window.ferdi.features.nightlyBuilds = { 36 window['ferdi'].features.nightlyBuilds = {
37 state, 37 state,
38 showModal, 38 showModal,
39 toggleFeature, 39 toggleFeature,