outline-server/src/server_manager/messages
Jonathan Cohen 2f2e658134
Per-Key Data Limits in the Manager (#841)
* Add per-key data limits to the UI

* Hold byte values instead of DisplayDataAmounts in OutlineServerView and OutlinePerKeyDatALimitDialog

This allows us to fix a layering issue where, at the time of converting
a server access key to a DisplayAccessKey, we couldn't compute the
'relevant transfer' for progress bar displays since we couldn't get at
the server's default data limit.

* Mayp#values() returns an Iterator, not an array

* Rename event field to defaultDataLimitBytes

* Don't reset the dialog state on failure

* Use a loop instead of Math.max in refreshTransferStats

* Unconditionally enable the default data limit in the UI after adding it to the server

Co-authored-by: Vinicius Fortuna <fortuna@users.noreply.github.com>

* Consistent handling of the view's default data limit state for both addition and removal

* Use callbacks to set and remove the per key data limit

* s/_showMenu/_showDataLimit/g

* Make language a public property of the dialog

* The dialog only needs the active data limit

* Use a separate method for the handler to open the dialog

* Use _activeDataLimitBytes

* We can use the ?? operator in `refreshTransferStats`

* s/dataLimitType/dataLimitUnit/g

* Rename a couple members

Co-authored-by: Vinicius Fortuna <fortuna@users.noreply.github.com>
2021-03-15 10:55:41 -04:00
..
am.json Import translations at b63606e (#719) 2020-08-11 15:22:09 -04:00
ar.json Import translations at b63606e (#719) 2020-08-11 15:22:09 -04:00
bg.json Import translations at b63606e (#719) 2020-08-11 15:22:09 -04:00
ca.json Import translations at b63606e (#719) 2020-08-11 15:22:09 -04:00
cs.json Import translations at b63606e (#719) 2020-08-11 15:22:09 -04:00
da.json Import translations at b63606e (#719) 2020-08-11 15:22:09 -04:00
de.json Import translations at b63606e (#719) 2020-08-11 15:22:09 -04:00
el.json Import translations at b63606e (#719) 2020-08-11 15:22:09 -04:00
en.json Per-Key Data Limits in the Manager (#841) 2021-03-15 10:55:41 -04:00
es-419.json Import translations at b63606e (#719) 2020-08-11 15:22:09 -04:00
fa.json Import translations at b63606e (#719) 2020-08-11 15:22:09 -04:00
fi.json Import translations at b63606e (#719) 2020-08-11 15:22:09 -04:00
fil.json Import translations at b63606e (#719) 2020-08-11 15:22:09 -04:00
fr.json Import translations at b63606e (#719) 2020-08-11 15:22:09 -04:00
he.json Import translations at b63606e (#719) 2020-08-11 15:22:09 -04:00
hi.json Import translations at b63606e (#719) 2020-08-11 15:22:09 -04:00
hr.json Import translations at b63606e (#719) 2020-08-11 15:22:09 -04:00
hu.json Import translations at b63606e (#719) 2020-08-11 15:22:09 -04:00
id.json Import translations at b63606e (#719) 2020-08-11 15:22:09 -04:00
it.json Import translations at b63606e (#719) 2020-08-11 15:22:09 -04:00
ja.json Import translations at b63606e (#719) 2020-08-11 15:22:09 -04:00
km.json Import translations at b63606e (#719) 2020-08-11 15:22:09 -04:00
ko.json Import translations at b63606e (#719) 2020-08-11 15:22:09 -04:00
lt.json Import translations at b63606e (#719) 2020-08-11 15:22:09 -04:00
lv.json Import translations at b63606e (#719) 2020-08-11 15:22:09 -04:00
master_messages.json Per-Key Data Limits in the Manager (#841) 2021-03-15 10:55:41 -04:00
nl.json Import translations at b63606e (#719) 2020-08-11 15:22:09 -04:00
no.json Import translations at b63606e (#719) 2020-08-11 15:22:09 -04:00
pl.json Import translations at b63606e (#719) 2020-08-11 15:22:09 -04:00
pt-BR.json Import translations at b63606e (#719) 2020-08-11 15:22:09 -04:00
ro.json Import translations at b63606e (#719) 2020-08-11 15:22:09 -04:00
ru.json Import translations at b63606e (#719) 2020-08-11 15:22:09 -04:00
sk.json Import translations at b63606e (#719) 2020-08-11 15:22:09 -04:00
sl.json Import translations at b63606e (#719) 2020-08-11 15:22:09 -04:00
sr-Latn.json Import translations at b63606e (#719) 2020-08-11 15:22:09 -04:00
sr.json Import translations at b63606e (#719) 2020-08-11 15:22:09 -04:00
sv.json Import translations at b63606e (#719) 2020-08-11 15:22:09 -04:00
th.json Import translations at b63606e (#719) 2020-08-11 15:22:09 -04:00
tr.json Import translations at b63606e (#719) 2020-08-11 15:22:09 -04:00
uk.json Import translations at b63606e (#719) 2020-08-11 15:22:09 -04:00
ur.json Import translations at b63606e (#719) 2020-08-11 15:22:09 -04:00
vi.json Import translations at b63606e (#719) 2020-08-11 15:22:09 -04:00
zh-CN.json Import translations at b63606e (#719) 2020-08-11 15:22:09 -04:00
zh-TW.json Import translations at b63606e (#719) 2020-08-11 15:22:09 -04:00