Page MenuHomePhabricator

[native] Used predefined function for discard edit mode alert
ClosedPublic

Authored by kuba on Apr 28 2023, 2:22 AM.
Tags
None
Referenced Files
F1779773: D7680.diff
Sat, May 18, 12:33 AM
Unknown Object (File)
Wed, May 15, 7:57 PM
Unknown Object (File)
Tue, May 14, 2:20 AM
Unknown Object (File)
Sun, May 12, 2:28 PM
Unknown Object (File)
Fri, May 10, 1:34 AM
Unknown Object (File)
Wed, May 8, 12:23 AM
Unknown Object (File)
Sat, May 4, 1:12 PM
Unknown Object (File)
Mon, Apr 22, 12:01 PM
Subscribers

Details

Summary

Used function, instead of creating a new alert.

Test Plan

Checked if the alert still works.

Diff Detail

Repository
rCOMM Comm
Branch
kuba/messageediting
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

ashoat requested changes to this revision.Apr 28 2023, 5:45 AM
ashoat added inline comments.
native/chat/chat-input-bar.react.js
970 ↗(On Diff #25901)

I think "Are you sure?" is too generic of a title here. It doesn't clarify what the user is doing exactly

I think I prefer the copy on line 970 and 971, but with some changes:

Alert.alert(
  'Discard changes?',
  'You have unsaved changes which will be discarded if you navigate away.',
);

We can keep this change here, but can you update exitEditAlert to match this proposed new copy?

This revision now requires changes to proceed.Apr 28 2023, 5:45 AM

Changed discard alert content

This revision is now accepted and ready to land.May 11 2023, 8:42 AM