Web: Store: remove personal
This commit is contained in:
parent
14cc2b042e
commit
f14927927b
@ -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"),
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user