Shubham Dhama
2aba7c239f
list_render: Make list creation logic as an export in list_render module.
...
This changes how we create lists i.e.
from `list_render($container, list, opts)`
to `list_render.create($container, list, opts)`
2018-06-22 09:21:47 -04:00
Yashashvi Dave
8729c9001d
static/js/settings_streams.js: Move delete_stream func to `stream_edit.js`.
2018-04-30 17:48:16 +05:30
Yashashvi Dave
7bbe44d7a0
org settings: Remove "Delete streams" administrative tab from settings.
...
Fixes #9227
2018-04-30 17:47:34 +05:30
Aastha Gupta
c852185e9d
stream settings: Make deactivate stream handler global.
...
Configure the click event handler for #do_deactivate_stream_button
once to avoid adding click handlers for it more than once.
Fixes #8979
2018-04-06 12:25:42 -07:00
Shubham Dhama
4cf42ce478
settings: Move remove-default-stream-button handler to settings_streams.
2018-03-26 10:27:09 -07:00
YJDave
d36ec962bb
deactivation-stream-modal: Make stream name a template variable.
...
In stream deactivation modal, make "stream_name" a template variable,
rather than patching stream name to modal header in javascript.
Add tests for deactivation stream modal.
2018-03-04 19:26:50 -08:00
YJDave
077e56e3b6
static/js/settings_streams.js: Refactor delete stream method.
2018-03-04 19:26:50 -08:00
Steve Howell
2b6fee3c53
i18n: Translate deactivation errors in the webapp.
2017-11-07 09:52:20 -08:00
Brock Whittaker
5331e52f6d
settings: Convert tables to use perfectScrollbar.
...
This converts tables in the organization section to use
perfectScrollbar.
2017-09-26 22:54:20 -07:00
Brock Whittaker
d1ef863f96
Add perfectScrollbar to default streams table.
...
This adds perfectScrollbar to the default streams table
because it currently is inside another perfectScrollbar which
actually makes it impossible to scroll the table normally without
enabling the perfectScrollbar library on this.
Fixes : #6391 .
2017-09-19 18:43:33 -07:00
Steve Howell
38664e8cad
Remove unused call to /json/streams endpoint.
...
We no longer need /json/streams in settings_streams.js.
2017-08-27 19:08:04 -07:00
Steve Howell
660854f5ad
admin: Use client-side data to populate list of streams.
...
Fixes #3786
2017-08-27 19:08:04 -07:00
Steve Howell
2c925e3567
stream_settings: Remove all_streams variable.
...
We no longer need this global variable after the prior commit.
2017-08-27 19:08:04 -07:00
Steve Howell
106d58df47
Add stream_data.get_non_default_stream_names().
...
This allows us to get the typeahead values for adding a default
stream using client-side data.
2017-08-27 19:08:04 -07:00
Tim Abbott
eb781de78d
settings: Fix buggy use of JavaScript regular expressions.
...
Using weird characters when filtering options items in these various
settings pages would throw exceptions whenever they didn't form a
valid regular expression.
2017-08-24 18:32:01 -07:00
Akhil
ff9a929d7a
typeahead: Remove highlighting and add common template.
2017-06-13 16:16:17 -04:00
Tim Abbott
bd81f66e01
settings: Fix ugly exclamation on default streams errors.
2017-06-04 10:42:41 -07:00
digi0ps
729bd6af12
settings: Enter now submits the data in Default stream settings.
...
Fixes #4232 .
2017-05-15 20:36:18 -07:00
digi0ps
6f7b973d3b
settings: Fix error handler for Default Streams.
...
Updates the error handler code to be consistent with how errors
are displayed everywhere else.
2017-05-15 20:34:45 -07:00
digi0ps
63587d6b70
settings: Add submit button for Default Stream form.
2017-05-15 20:34:17 -07:00
Brock Whittaker
db40d62092
Change admin streams list to render progressively.
2017-05-05 14:14:37 -07:00
Brock Whittaker
0e4f2f732d
Change admin default streams list to render progressively.
2017-05-05 14:14:37 -07:00
Steve Howell
22e21cddcb
admin/settings: Lazy-load Organization sections.
...
We now wait to load Organization sections until you
click on the section (or virtually click by using arrow
keys).
Some of the sections are coupled in terms of their setup,
so some sections will already be loaded if you had clicked
on a related section.
2017-04-17 20:55:42 -07:00
Abhijeet Kaur
dc801eb5ed
Organization settings: "Default streams" tab view-only support.
...
This changes the layout of "organization settings" for
non-administrators such that they can view "Default streams" ("Actions"
and the form to add new default stream is not visible).
2017-04-16 12:21:36 -07:00
Steve Howell
3e37f64f71
Extract settings_streams.js.
2017-04-13 10:39:39 -07:00