Skip to content

Commit

Permalink
fix(toolbar): remove secondary create group modal
Browse files Browse the repository at this point in the history
  • Loading branch information
josephmcg committed Jun 15, 2022
1 parent ddad8db commit e582bb9
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 144 deletions.
35 changes: 0 additions & 35 deletions components/views/group/create/Create.html

This file was deleted.

42 changes: 0 additions & 42 deletions components/views/group/create/Create.less

This file was deleted.

53 changes: 0 additions & 53 deletions components/views/group/create/Create.vue

This file was deleted.

12 changes: 1 addition & 11 deletions components/views/navigation/toolbar/Toolbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -93,23 +93,13 @@
</div>
</UiComingSoon>
<div
v-if="!isGroup"
class="control-button"
data-cy="toolbar-new-group"
v-tooltip.bottom="$t('pages.chat.new_group')"
@click="toggleModal('creategroup')"
>
<users-icon size="1x" class="control-icon" />
</div>
<div
v-else
v-if="isGroup"
class="control-button"
v-tooltip.bottom="$t('pages.chat.add_member')"
@click="groupInvite"
>
<user-plus-icon size="1x" class="control-icon" />
</div>
<GroupCreate v-click-outside="()=>toggleModal('creategroup')" />
<GroupInvite v-click-outside="()=>toggleModal('groupInvite')" />

<div class="vertical-divider" v-if="!$device.isMobile"></div>
Expand Down
1 change: 0 additions & 1 deletion store/ui/__snapshots__/state.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ Object {
"callToAction": false,
"changelog": false,
"createServer": false,
"creategroup": false,
"crop": false,
"error": false,
"errorNetwork": Object {
Expand Down
1 change: 0 additions & 1 deletion store/ui/state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ const InitialUIState = (): UIState => ({
marketplace: false,
wallet: false,
quickchat: false,
creategroup: false,
walletMini: false,
error: false,
changelog: false,
Expand Down
1 change: 0 additions & 1 deletion store/ui/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ export enum ModalWindows {
CALL_TO_ACTION = 'callToAction',
RENAME_FILE = 'renameFile',
CROP = 'crop',
CREATE_GROUP = 'creategroup',
}

export interface EnhancerInfo {
Expand Down

0 comments on commit e582bb9

Please sign in to comment.