Commit 4ee8175 1 parent ce96b8e commit 4ee8175 Copy full SHA for 4ee8175
File tree 7 files changed +11
-10
lines changed
7 files changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -222,7 +222,7 @@ EXEMPT_FILES = make_set(
222
222
"web/src/settings_realm_user_settings_defaults.ts" ,
223
223
"web/src/settings_sections.ts" ,
224
224
"web/src/settings_streams.ts" ,
225
- "web/src/settings_toggle.js " ,
225
+ "web/src/settings_toggle.ts " ,
226
226
"web/src/settings_ui.ts" ,
227
227
"web/src/settings_user_topics.ts" ,
228
228
"web/src/settings_users.ts" ,
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ import * as settings_invites from "./settings_invites.ts";
19
19
import * as settings_org from "./settings_org.ts" ;
20
20
import * as settings_panel_menu from "./settings_panel_menu.ts" ;
21
21
import * as settings_sections from "./settings_sections.ts" ;
22
- import * as settings_toggle from "./settings_toggle.js " ;
22
+ import * as settings_toggle from "./settings_toggle.ts " ;
23
23
import * as settings_users from "./settings_users.ts" ;
24
24
import { current_user , realm } from "./state_data.ts" ;
25
25
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ import * as rows from "./rows.ts";
31
31
import * as server_events from "./server_events.js" ;
32
32
import * as settings_panel_menu from "./settings_panel_menu.ts" ;
33
33
import * as settings_preferences from "./settings_preferences.ts" ;
34
- import * as settings_toggle from "./settings_toggle.js " ;
34
+ import * as settings_toggle from "./settings_toggle.ts " ;
35
35
import * as sidebar_ui from "./sidebar_ui.ts" ;
36
36
import * as spectators from "./spectators.ts" ;
37
37
import * as starred_messages_ui from "./starred_messages_ui.ts" ;
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ import * as recent_view_util from "./recent_view_util.ts";
24
24
import * as scheduled_messages_overlay_ui from "./scheduled_messages_overlay_ui.ts" ;
25
25
import * as settings from "./settings.js" ;
26
26
import * as settings_panel_menu from "./settings_panel_menu.ts" ;
27
- import * as settings_toggle from "./settings_toggle.js " ;
27
+ import * as settings_toggle from "./settings_toggle.ts " ;
28
28
import * as sidebar_ui from "./sidebar_ui.ts" ;
29
29
import * as spectators from "./spectators.ts" ;
30
30
import { current_user } from "./state_data.ts" ;
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ import * as settings_data from "./settings_data.ts";
19
19
import * as settings_panel_menu from "./settings_panel_menu.ts" ;
20
20
import * as settings_preferences from "./settings_preferences.ts" ;
21
21
import * as settings_sections from "./settings_sections.ts" ;
22
- import * as settings_toggle from "./settings_toggle.js " ;
22
+ import * as settings_toggle from "./settings_toggle.ts " ;
23
23
import { current_user , realm } from "./state_data.ts" ;
24
24
import * as timerender from "./timerender.ts" ;
25
25
import { user_settings } from "./user_settings.ts" ;
Original file line number Diff line number Diff line change 1
1
import $ from "jquery" ;
2
2
3
3
import * as components from "./components.ts" ;
4
+ import type { Toggle } from "./components.ts" ;
4
5
import { $t } from "./i18n.ts" ;
5
6
import * as settings_panel_menu from "./settings_panel_menu.ts" ;
6
7
7
- let toggler ;
8
+ let toggler : Toggle | undefined ;
8
9
9
- export function goto ( tab_name ) {
10
+ export function goto ( tab_name : string ) : void {
10
11
if ( toggler ) {
11
12
toggler . goto ( tab_name ) ;
12
13
}
13
14
}
14
15
15
- export function initialize ( ) {
16
+ export function initialize ( ) : void {
16
17
toggler = components . toggle ( {
17
18
child_wants_focus : true ,
18
19
values : [
@@ -34,7 +35,7 @@ export function initialize() {
34
35
}
35
36
36
37
// Handles the collapse/reveal of some tabs in the org settings for non-admins.
37
- export function toggle_org_setting_collapse ( ) {
38
+ export function toggle_org_setting_collapse ( ) : void {
38
39
const is_collapsed = $ ( ".collapse-org-settings" ) . hasClass ( "hide-org-settings" ) ;
39
40
const show_fewer_settings_text = $t ( { defaultMessage : "Show fewer" } ) ;
40
41
const show_more_settings_text = $t ( { defaultMessage : "Show more" } ) ;
Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ import * as settings_panel_menu from "./settings_panel_menu.ts";
110
110
import * as settings_preferences from "./settings_preferences.ts" ;
111
111
import * as settings_realm_user_settings_defaults from "./settings_realm_user_settings_defaults.ts" ;
112
112
import * as settings_sections from "./settings_sections.ts" ;
113
- import * as settings_toggle from "./settings_toggle.js " ;
113
+ import * as settings_toggle from "./settings_toggle.ts " ;
114
114
import * as sidebar_ui from "./sidebar_ui.ts" ;
115
115
import * as spoilers from "./spoilers.ts" ;
116
116
import * as starred_messages from "./starred_messages.ts" ;
You can’t perform that action at this time.
0 commit comments