-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Modify/Add phrase message and the modification failed phrase should not be removed. #75
Comments
Because we are re-using |
jeffreyhc
pushed a commit
to jeffreyhc/chewing-editor
that referenced
this issue
Mar 26, 2016
The phrase can be preserved when the "add" step in "modify" is failed.
jeffreyhc
pushed a commit
to jeffreyhc/chewing-editor
that referenced
this issue
Mar 26, 2016
The phrase can be preserved when the "add" step in "modify" is failed. After a new phrase is added, the selection of the original phrase in chewing-editor seems to be reset, then the remove() in UserphaseView will lost the remove target. So I check the modified phrase add to the database successfully or not, If the adding is fail, then re-add the original phrase. Resolves: chewing#75 See also: chewing#109
jeffreyhc
pushed a commit
to jeffreyhc/chewing-editor
that referenced
this issue
Mar 27, 2016
The phrase can be preserved when the "add" step in "modify" is failed. After a new phrase is added, the selection of the original phrase in chewing-editor seems to be reset, then the remove() in UserphaseView will lost the remove target. So I check the modified phrase add to the database successfully or not, If the adding is fail, then re-add the original phrase. Resolves: chewing#75 See also: chewing#109
jeffreyhc
pushed a commit
to jeffreyhc/chewing-editor
that referenced
this issue
Mar 28, 2016
The phrase can be preserved when the "add" step in "modify" is failed. After a new phrase is added, the selection of the original phrase in chewing-editor seems to be reset, then the remove() in UserphaseView will lost the remove target. So I check the modified phrase add to the database successfully or not, If the adding is fail, then re-add the original phrase. Resolves: chewing#75 See also: chewing#109
jeffreyhc
pushed a commit
to jeffreyhc/chewing-editor
that referenced
this issue
Apr 1, 2016
The phrase can be preserved when the "add" step in "modify" is failed. After a new phrase is added, the selection of the original phrase in chewing-editor seems to be reset, then the remove() in UserphaseView will lost the remove target. So I check the modified phrase add to the database successfully or not, If the adding is fail, then re-add the original phrase. Resolves: chewing#75 See also: chewing#109
jeffreyhc
pushed a commit
to jeffreyhc/chewing-editor
that referenced
this issue
Apr 4, 2016
The phrase can be preserved when the "add" step in "modify" is failed. After a new phrase is added, the selection of the original phrase in chewing-editor seems to be reset, then the remove() in UserphaseView will lost the remove target. So I check the modified phrase add to the database successfully or not, If the adding is fail, then re-add the original phrase. Resolves: chewing#75 See also: chewing#109
jeffreyhc
pushed a commit
to jeffreyhc/chewing-editor
that referenced
this issue
Apr 9, 2016
Close chewing#75 The phrase can be preserved when the "add" step in "modify" is failed. After a new phrase is added, the selection of the original phrase in chewing-editor seems to be reset, then the remove() in UserphaseView will lost the remove target. So I check the modified phrase add to the database successfully or not, If the adding is fail, then re-add the original phrase. See also: chewing#109
jeffreyhc
pushed a commit
to jeffreyhc/chewing-editor
that referenced
this issue
Apr 9, 2016
Close chewing#75 The phrase can be preserved when the "add" step in "modify" is failed. After a new phrase is added, the selection of the original phrase in chewing-editor seems to be reset, then the remove() in UserphaseView will lost the remove target. So I check the modified phrase add to the database successfully or not, If the adding is fail, then re-add the original phrase. See also: chewing#109
jeffreyhc
pushed a commit
to jeffreyhc/chewing-editor
that referenced
this issue
Apr 9, 2016
Close chewing#75 The phrase can be preserved when the "add" step in "modify" is failed. After a new phrase is added, the selection of the original phrase in chewing-editor seems to be reset, then the remove() in UserphaseView will lost the remove target. So I check the modified phrase add to the database successfully or not, If the adding is fail, then re-add the original phrase. See also: chewing#109
jeffreyhc
pushed a commit
to jeffreyhc/chewing-editor
that referenced
this issue
Apr 9, 2016
Close chewing#75 The phrase can be preserved when the "add" step in "modify" is failed. After a new phrase is added, the selection of the original phrase in chewing-editor seems to be reset, then the remove() in UserphaseView will lost the remove target. So I check the modified phrase add to the database successfully or not, If the adding is fail, then re-add the original phrase. See also: chewing#109
jeffreyhc
pushed a commit
to jeffreyhc/chewing-editor
that referenced
this issue
Apr 10, 2016
Close chewing#75 The phrase can be preserved when the "add" step in "modify" is failed. After a new phrase is added, the selection of the original phrase in chewing-editor seems to be reset, then the remove() in UserphaseView will lost the remove target. So I check the modified phrase add to the database successfully or not, If the adding is fail, then re-add the original phrase. See also: chewing#109
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When I modify a existing phrase, the message shows "Add new phrase successful" rather than "Modify a phrase successful" .
I add a new phrase 耶(一ㄝ)

And then I modify it to 一ㄝˋ, but the message above shows "Add new phrase 耶(一ㄝˋ) successful" .

I think it should be some modify message like "Modify phrase 耶(一ㄝ) to 耶(一ㄝˋ) successful" because I didn't add any new phrase into phrase list.
Besides, if Add failed, the message should be "Add new phrase 耶(一ㄝ) failed" while if Modification failed, the message should be "Modify phrase 耶(一ㄝ) to 耶(一ㄝˋ) failed" instead of "Remove 1 phrase successful", and the original phrase before modification should not be removed. (in this example , the phrase 耶(一ㄝ) should exists in list)
The text was updated successfully, but these errors were encountered: