Skip to content

Commit

Permalink
fix: undo undesired changes
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoTuxx committed Dec 9, 2024
1 parent cf3a36f commit fe66bc7
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
24 changes: 12 additions & 12 deletions client/src/views/files/FoldersPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
>
<ms-action-bar id="folders-ms-action-bar">
<div v-if="selectedFilesCount === 0">
<file-controls-button
<ms-action-bar-button
id="button-new-folder"
v-show="ownRole !== parsec.WorkspaceRole.Reader"
:button-label="'FoldersPage.createFolder'"
:icon="folderOpen"
@click="createFolder()"
/>
<file-controls-button
<ms-action-bar-button
id="button-import"
v-show="ownRole !== parsec.WorkspaceRole.Reader"
:button-label="'FoldersPage.import'"
Expand All @@ -24,63 +24,63 @@
/>
</div>
<div v-else-if="selectedFilesCount === 1">
<file-controls-button
<ms-action-bar-button
id="button-rename"
v-show="ownRole !== parsec.WorkspaceRole.Reader"
:button-label="'FoldersPage.fileContextMenu.actionRename'"
:icon="pencil"
@click="renameEntries(getSelectedEntries())"
/>
<file-controls-button
<ms-action-bar-button
id="button-moveto"
v-show="ownRole !== parsec.WorkspaceRole.Reader"
:button-label="'FoldersPage.fileContextMenu.actionMoveTo'"
:icon="arrowRedo"
@click="moveEntriesTo(getSelectedEntries())"
/>
<file-controls-button
<ms-action-bar-button
id="button-makeacopy"
v-show="ownRole !== parsec.WorkspaceRole.Reader"
:button-label="'FoldersPage.fileContextMenu.actionMakeACopy'"
:icon="copy"
@click="copyEntries(getSelectedEntries())"
/>
<file-controls-button
<ms-action-bar-button
id="button-delete"
v-show="ownRole !== parsec.WorkspaceRole.Reader"
:button-label="'FoldersPage.fileContextMenu.actionDelete'"
:icon="trashBin"
@click="deleteEntries(getSelectedEntries())"
/>
<file-controls-button
<ms-action-bar-button
id="button-details"
:button-label="'FoldersPage.fileContextMenu.actionDetails'"
:icon="informationCircle"
@click="showDetails(getSelectedEntries())"
/>
<file-controls-button
<ms-action-bar-button
id="button-copy-link"
:button-label="'FoldersPage.fileContextMenu.actionCopyLink'"
:icon="link"
@click="copyLink(getSelectedEntries())"
/>
</div>
<div v-else>
<file-controls-button
<ms-action-bar-button
id="button-moveto"
v-show="ownRole !== parsec.WorkspaceRole.Reader"
:button-label="'FoldersPage.fileContextMenu.actionMoveTo'"
:icon="arrowRedo"
@click="moveEntriesTo(getSelectedEntries())"
/>
<file-controls-button
<ms-action-bar-button
id="button-makeacopy"
v-show="ownRole !== parsec.WorkspaceRole.Reader"
:button-label="'FoldersPage.fileContextMenu.actionMakeACopy'"
:icon="copy"
@click="copyEntries(getSelectedEntries())"
/>
<file-controls-button
<ms-action-bar-button
id="button-delete"
v-show="ownRole !== parsec.WorkspaceRole.Reader"
:button-label="'FoldersPage.fileContextMenu.actionDelete'"
Expand Down Expand Up @@ -209,7 +209,7 @@ import {
DocumentImport,
DisplayState,
MsActionBar,
FileControlsButton,
MsActionBarButton,
MsGridListToggle,
MsSorter,
MsSorterChangeEvent,
Expand Down
8 changes: 4 additions & 4 deletions client/src/views/users/UsersPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<!-- contextual menu -->
<ms-action-bar id="activate-users-ms-action-bar">
<div v-show="users.selectedCount() === 0 && isAdmin">
<file-controls-button
<ms-action-bar-button
:icon="personAdd"
id="button-invite-user"
:button-label="'UsersPage.inviteUser'"
Expand All @@ -18,7 +18,7 @@
</div>
<!-- revoke or view common workspace -->
<div v-show="users.selectedCount() >= 1 && isAdmin">
<file-controls-button
<ms-action-bar-button
:icon="personRemove"
class="danger"
id="button-revoke-user"
Expand All @@ -27,7 +27,7 @@
/>
</div>
<div v-show="users.selectedCount() === 1">
<file-controls-button
<ms-action-bar-button
:icon="informationCircle"
id="button-common-workspaces"
:button-label="'UsersPage.userContextMenu.actionDetails'"
Expand Down Expand Up @@ -125,7 +125,7 @@ import {
NoActiveUser,
DisplayState,
MsActionBar,
FileControlsButton,
MsActionBarButton,
MsGridListToggle,
MsSearchInput,
MsSorter,
Expand Down
4 changes: 2 additions & 2 deletions client/src/views/workspaces/WorkspacesPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
>
<ms-action-bar id="workspaces-ms-action-bar">
<!-- contextual menu -->
<file-controls-button
<ms-action-bar-button
v-show="clientProfile != UserProfile.Outsider"
id="button-new-workspace"
:button-label="'WorkspacesPage.createWorkspace'"
Expand Down Expand Up @@ -163,7 +163,7 @@ import {
NoWorkspace,
DisplayState,
MsActionBar,
FileControlsButton,
MsActionBarButton,
MsGridListToggle,
MsSorter,
MsSorterChangeEvent,
Expand Down

0 comments on commit fe66bc7

Please sign in to comment.