Merge branch 'release/1.0.0' into bugfix/profile-form-validation
This commit is contained in:
commit
e734f222f5
@ -4,8 +4,8 @@ import omit from "lodash/omit";
|
||||
|
||||
export const desktopConstants = Object.freeze({
|
||||
domain: window.location.origin,
|
||||
provider: "AppServer",
|
||||
guid: "{FFF0E1EB-13DB-4678-B67D-FF0A41DBBCEF}",
|
||||
provider: "onlyoffice",
|
||||
cryptoEngineId: "{FFF0E1EB-13DB-4678-B67D-FF0A41DBBCEF}",
|
||||
});
|
||||
|
||||
export function regDesktop(
|
||||
@ -33,7 +33,7 @@ export function regDesktop(
|
||||
extendedData = {
|
||||
...data,
|
||||
encryptionKeys: {
|
||||
cryptoEngineId: desktopConstants.guid,
|
||||
cryptoEngineId: desktopConstants.cryptoEngineId,
|
||||
},
|
||||
};
|
||||
|
||||
|
@ -256,7 +256,7 @@ class AuthStore {
|
||||
window.AscDesktopEditor.cloudCryptoCommand(
|
||||
"share",
|
||||
{
|
||||
cryptoEngineId: desktopConstants.guid,
|
||||
cryptoEngineId: desktopConstants.cryptoEngineId,
|
||||
file: [file.viewUrl],
|
||||
keys: keys,
|
||||
},
|
||||
|
@ -86,6 +86,7 @@ class DownloadDialogComponent extends React.Component {
|
||||
window.open(viewUrl, "_self");
|
||||
this.onClose();
|
||||
} else if (fileConvertIds.length || folderIds.length) {
|
||||
this.onClose();
|
||||
downloadFiles(fileConvertIds, folderIds, t("Translations:ArchivingData"));
|
||||
}
|
||||
};
|
||||
|
@ -136,7 +136,6 @@ const SelectFileDialogAsideView = ({
|
||||
isDisabled={selectedFile.length === 0}
|
||||
/>
|
||||
<Button
|
||||
primary
|
||||
size="big"
|
||||
label={t("Common:CloseButton")}
|
||||
onClick={onClose}
|
||||
|
@ -242,7 +242,6 @@ class SelectFileDialogModalView extends React.Component {
|
||||
/>
|
||||
<Button
|
||||
className="modal-dialog-button"
|
||||
primary
|
||||
size="medium"
|
||||
label={t("Common:CloseButton")}
|
||||
onClick={onClose}
|
||||
|
@ -92,7 +92,6 @@ const SelectFolderDialogAsideView = ({
|
||||
isDisabled={isLoadingData || !isAvailable || !canCreate}
|
||||
/>
|
||||
<Button
|
||||
primary
|
||||
size="big"
|
||||
label={t("Common:CloseButton")}
|
||||
onClick={onClose}
|
||||
|
@ -69,7 +69,6 @@ const SelectFolderDialogModalView = ({
|
||||
isDisabled={isLoadingData || !isAvailable || !canCreate}
|
||||
/>
|
||||
<Button
|
||||
primary
|
||||
size="medium"
|
||||
label={t("Common:CloseButton")}
|
||||
onClick={onClose}
|
||||
|
@ -8,7 +8,7 @@ export function encryptionUploadDialog(callback) {
|
||||
const filter = docserviceStore.encryptedDocs.map((f) => "*" + f).join(" ");
|
||||
|
||||
const data = {
|
||||
cryptoEngineId: desktopConstants.guid,
|
||||
cryptoEngineId: desktopConstants.cryptoEngineId,
|
||||
filter: filter,
|
||||
};
|
||||
|
||||
@ -30,7 +30,7 @@ export function setEncryptionAccess(file) {
|
||||
window.AscDesktopEditor.cloudCryptoCommand(
|
||||
"share",
|
||||
{
|
||||
cryptoEngineId: desktopConstants.guid,
|
||||
cryptoEngineId: desktopConstants.cryptoEngineId,
|
||||
file: [file.viewUrl],
|
||||
keys: keys,
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user