Web: Store: remove personal

This commit is contained in:
Dmitry Sychugov 2024-03-27 19:06:35 +05:00
parent 14cc2b042e
commit f14927927b
2 changed files with 4 additions and 8 deletions

View File

@ -1579,7 +1579,6 @@ class ContextOptionsStore {
};
getGroupContextOptions = (t) => {
const { personal } = this.settingsStore;
const { selection, allFilesIsEditing } = this.filesStore;
const { setDeleteDialogVisible } = this.dialogsStore;
const { isRecycleBinFolder, isRoomsFolder, isArchiveFolder } =
@ -1675,10 +1674,9 @@ class ContextOptionsStore {
const hasDownloadAccess =
selection.findIndex((k) => k.security.Download) !== -1;
const sharingItems =
selection.filter(
(k) => k.contextOptions.includes("sharing-settings") && k.canShare,
).length && !personal;
const sharingItems = selection.filter(
(k) => k.contextOptions.includes("sharing-settings") && k.canShare,
).length;
const favoriteItems = selection.filter((k) =>
k.contextOptions.includes("mark-as-favorite"),

View File

@ -183,8 +183,6 @@ class SettingsStore {
encryptionKeys: { [key: string]: string | boolean } = {};
personal = false;
docSpace = true;
roomsMode = false;
@ -536,7 +534,7 @@ class SettingsStore {
newSettings = window.__ASC_INITIAL_EDITOR_STATE__.portalSettings;
else newSettings = await api.settings.getSettings(true);
if (window.AscDesktopEditor !== undefined || this.personal) {
if (window.AscDesktopEditor !== undefined) {
const dp = combineUrl(window.DocSpaceConfig?.proxy?.url, MEDIA_VIEW_URL);
this.setDefaultPage(dp);
}