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
F2111261: D7680.id26505.diff
Tue, Jun 25, 10:23 PM
Unknown Object (File)
Sat, Jun 15, 2:09 AM
Unknown Object (File)
Sat, Jun 8, 9:38 PM
Unknown Object (File)
Wed, May 29, 1:13 AM
Unknown Object (File)
Wed, May 29, 1:13 AM
Unknown Object (File)
Wed, May 29, 1:13 AM
Unknown Object (File)
Wed, May 29, 1:12 AM
Unknown Object (File)
Tue, May 28, 9:12 AM
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

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