Michael Telatynski
a7eb09af1e
Convert EditableItemList & AliasSettings to Typescript
2021-06-07 15:48:55 +01:00
Šimon Brandner
232b87a3b4
Improve formatting
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-04-29 19:57:02 +02:00
Šimon Brandner
46bfbbadf9
Enable indent rule and fix indent
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-04-27 17:23:27 +02:00
Travis Ralston
c359dff738
Batch of views getting replaceableComponent decorators
2021-03-08 20:23:34 -07:00
Šimon Brandner
4185d53468
Disable add button if the field is empty
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2020-12-29 16:30:20 +01:00
Šimon Brandner
7912091bc5
Revert "Hide add button when new item field is empty"
...
This reverts commit fa99c2e8c5
.
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2020-12-29 16:08:54 +01:00
Šimon Brandner
fa99c2e8c5
Hide add button when new item field is empty
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2020-12-22 13:14:55 +01:00
Michael Telatynski
96cfd26bd4
fix imports some more
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-07-02 23:32:21 +01:00
Michael Telatynski
19aae087e0
Field: make id optional, generate one if not provided
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-03-29 22:59:15 +01:00
Bruno Windels
db10fcd2b7
make editable list look like something closer to design
2020-03-16 17:29:35 +01:00
Bruno Windels
053ba1110a
make pressing enter not reload riot when editable list is in form
2020-03-09 16:32:31 +01:00
Bruno Windels
eb539537f2
add recommendations for alt aliases
2020-03-09 16:31:07 +01:00
Michael Telatynski
a0de7d5f14
Cull some easily fixable errors which make the console a mess
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-10-03 21:47:19 +01:00
Michael Telatynski
c2905bd33b
make things a tad saner
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-07-06 11:16:01 +01:00
Michael Telatynski
89ece266c6
Make id used in EditableItemList unique, namespace mx_EditableItemList_*
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-07-06 11:15:10 +01:00
Michael Telatynski
d774d96290
Fix some React errors
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-06-30 10:41:39 +01:00
J. Ryan Stinnett
4b340450b9
Rename Feather icon directory to feather-customised
...
These icons are based on Feather as the original source, but they have various
tweaks applied, such as stroke width, color, etc. Hopefully the tweaked name
makes this more obvious in the future.
2019-02-27 10:42:10 +00:00
Travis Ralston
9795161f40
Misc linter cleanup
2019-02-21 17:53:29 -07:00
Travis Ralston
1e6594ceba
Disable removal of items if the user doesn't have permission
2019-02-21 17:15:25 -07:00
Travis Ralston
5d2f17c49a
Make adding aliases direct manipulation
2019-02-21 15:22:08 -07:00
Travis Ralston
2903a0e712
Rework EditableItemList to support mxField
...
Also improves upon the general UX to be a bit friendlier for direct manipulation things.
2019-02-21 15:22:08 -07:00
Travis Ralston
87e6652b2a
Flair settings for rooms
2019-01-28 13:54:56 -07:00
J. Ryan Stinnett
20e296b20e
Convert image URLs in React to require
calls
...
This allows Webpack to insert the proper image URL after builds steps like
adding a hash and so on. The path you supply to `require` is relative to the JS
source file, just like any other would be.
2019-01-17 22:06:49 -06:00
Luke Barnard
016e9176f6
Fix room topics/names reseting when UserSetting re-renders
...
This reverts a fix to EditableText introduced in
https://github.com/matrix-org/matrix-react-sdk/pull/1445
which introduced a bug that causes room name and topic to
reset when UserSettings is rerendered because
`initialValue != this.value`
This also fixes the same bug originally fixed by #1445 :
>fix entering the same thing twice (which had the bug of not
>emptying the "new" field)
which, in other words meant that clicking "+" when adding a room
alias would not reset the contents of the bottom-most alias in the
list.
The fix is to increment the `key` of the element, causing a new
instance to be mounted instead of passing new props to the existing
one.
2018-06-28 18:11:52 +01:00
Luke Barnard
640d88f25d
Typo
2017-10-24 16:21:18 +01:00
Luke Barnard
ee7ebc425c
Only show editing UI for aliases/related_groups for users /w power
2017-10-24 16:19:09 +01:00
Luke Barnard
9e3954865a
Fix a couple of bugs with EditableItemList
...
- fix entering the same thing twice (which had the bug of not emptying the "new" field)
- fix editing items in the list (which would stack overflow because of typo)
2017-10-04 13:15:38 +01:00
Luke Barnard
4e9694be6d
Maintain "blur to add" function to match previous UX
2017-10-04 10:28:26 +01:00
Luke Barnard
d25ebfb844
Remove cruft from EIL
2017-10-04 10:15:44 +01:00
Luke Barnard
8243c39d83
Factor out EditableItemList from AliasSettings
...
Such that we can reuse the same UI elsewhere, namely when editing related groups of a room (which is an upcoming feature).
2017-10-04 10:00:01 +01:00