Skip to content

Commit

Permalink
Change messages in dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
mprotasov committed Nov 7, 2024
1 parent 531512a commit 2c54773
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ public static void showDlg(
boolean isDelete = (left && diffType == DiffTypes.INSERTED) || (!left && diffType == DiffTypes.DELETED);

String modelType = remoteModel.isFile() ? "File " : "Folder ";
String title = "Confirm " +
modelType.toLowerCase() +
(isDelete ? "delete " : "copy ") +
"operation";
String title =
(isDelete ? "Delete " : "Copy ") +
modelType;

String text = isDelete
? modelType + from
: "From " + modelType.toLowerCase() + from + " to " + to;
: "From\n" + from + "\n\nTo\n" + to;

var i = JsNative.createInput(
title, text,
Expand Down

0 comments on commit 2c54773

Please sign in to comment.