Skip to content

Commit

Permalink
update confirmation string
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandria.gomez authored and alexandria.gomez committed Oct 16, 2023
1 parent 285e7d3 commit 45cec13
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/extensions/savetoLaserfiche/SaveToLaserficheDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ export default class SaveToLaserficheCustomDialog extends BaseDialog {
}
}

const ENTRY_WITH_SAME_NAME_EXISTS_IN_FOLDER_IF_CONTINUE_LF_WILL_RENAME = 'An entry with the same name already exists in the specified folder. If you continue, Laserfiche will automatically rename the new document.';
function SaveToLaserficheDialog(props: {
isSuccessfulLoggedIn: (success: boolean) => void;
closeClick: (success?: SavedToLaserficheDocumentData) => Promise<void>;
Expand Down Expand Up @@ -138,7 +139,7 @@ function SaveToLaserficheDialog(props: {
if (name) {
setShowSaveTo(false);
const status = await getConfirmation(
'An entry with the same name already exists in the specified folder. If you continue, the document will be automatically renamed.'
ENTRY_WITH_SAME_NAME_EXISTS_IN_FOLDER_IF_CONTINUE_LF_WILL_RENAME
);
if (status) {
setShowSaveTo(true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,7 @@ function RepositoryBrowserToolbar(props: {
);
}

const ENTRY_WITH_SAME_NAME_EXISTS_IN_FOLDER_IF_CONTINUE_LF_WILL_RENAME = 'An entry with the same name already exists in the specified folder. If you continue, Laserfiche will automatically rename the new document.';
function ImportFileModal(props: {
repoClient: IRepositoryApiClientExInternal;
loggedIn: boolean;
Expand Down Expand Up @@ -473,7 +474,7 @@ function ImportFileModal(props: {
if (name) {
setShowImport(false);
const status = await getConfirmation(
'An entry with the same name already exists in the specified folder. If you continue, the document will be automatically renamed.'
ENTRY_WITH_SAME_NAME_EXISTS_IN_FOLDER_IF_CONTINUE_LF_WILL_RENAME
);
setShowImport(true);
if (status) {
Expand Down

0 comments on commit 45cec13

Please sign in to comment.