Skip to content

Commit

Permalink
MWPW-153573 - [LocUI] Transcreate UI (#2551)
Browse files Browse the repository at this point in the history
add transcreate to actions and errors array adjustment
  • Loading branch information
Sartxi authored Jul 9, 2024
1 parent 486ea8b commit ed8dd3b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libs/blocks/locui/loc/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import login from '../../../tools/sharepoint/login.js';
import { getServiceUpdates } from '../utils/miloc.js';
import { connectSK } from '../../../utils/sidekick.js';

const LANG_ACTIONS = ['Translate', 'English Copy', 'Rollout'];
const LANG_ACTIONS = ['Translate', 'English Copy', 'Rollout', 'Transcreate'];
const MOCK_REFERRER = 'https%3A%2F%2Fadobe.sharepoint.com%2F%3Ax%3A%2Fr%2Fsites%2Fadobecom%2F_layouts%2F15%2FDoc.aspx%3Fsourcedoc%3D%257B94460FAC-CDEE-4B31-B8E0-AA5E3F45DCC5%257D%26file%3Dwesco-demo.xlsx';

const urlParams = new URLSearchParams(window.location.search);
Expand Down
2 changes: 1 addition & 1 deletion libs/blocks/locui/utils/miloc.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ export async function createProject() {
await preview(`${heading.value.path}.json`);
} else if (resp.status === 500) {
const json = await resp.json();
setStatus('service', 'error', 'Creating project', json.error);
setStatus('service', 'error', 'Creating project', json.errors && json.errors?.length > 0 ? json.errors : json.error);
}
return resp.status;
}
Expand Down

0 comments on commit ed8dd3b

Please sign in to comment.