Skip to content

Commit

Permalink
Merge pull request #680 from webitel/hotfix/team-agents-tab
Browse files Browse the repository at this point in the history
hotfix: remove delete and adit actions from team agents tab [WTEL-4585]
  • Loading branch information
liza-pohranichna authored Jun 11, 2024
2 parents 92b300d + 04704d9 commit eded14f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 142 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
<template>
<section>
<agent-popup
v-if="isAgentPopup"
@close="closePopup"
/>
<delete-confirmation-popup
v-show="isDeleteConfirmationPopup"
:delete-count="deleteCount"
:callback="deleteCallback"
@close="closeDelete"
/>
<object-list-popup
v-if="isSupervisorPopup"
:data-list="openedItemSupervisors"
Expand Down Expand Up @@ -41,15 +31,6 @@
:icons="['refresh']"
@input="tableActionsHandler"
>
<delete-all-action
v-if="!disableUserInput"
:class="{'hidden': anySelected}"
:selected-count="selectedRows.length"
@click="askDeleteConfirmation({
deleted: selectedRows,
callback: () => deleteData(selectedRows),
})"
/>
<wt-icon-btn
v-if="!disableUserInput"
class="icon-action"
Expand Down Expand Up @@ -105,20 +86,6 @@
@input="readSkills(item)"
/>
</template>
<template #actions="{ item }">
<wt-icon-action
action="edit"
@click="edit(item)"
/>
<wt-icon-action
action="delete"
class="table-action"
@click="askDeleteConfirmation({
deleted: [item],
callback: () => deleteData(item),
})"
/>
</template>
</wt-table>
<wt-pagination
:next="isNext"
Expand All @@ -143,54 +110,26 @@ import openedObjectTableTabMixin
import RouteNames from '../../../../../../../app/router/_internals/RouteNames.enum';
import agentStatusMixin from '../../../../../mixins/agentStatusMixin';
import agentSupervisorsAndSkillsPopupMixin from '../../../../../mixins/agentSupervisorsAndSkillsPopupMixin';
import AgentPopup from './opened-team-agent-popup.vue';
import DeleteConfirmationPopup
from '@webitel/ui-sdk/src/modules/DeleteConfirmationPopup/components/delete-confirmation-popup.vue';
import { useDeleteConfirmationPopup } from '@webitel/ui-sdk/src/modules/DeleteConfirmationPopup/composables/useDeleteConfirmationPopup';
const namespace = 'ccenter/teams';
const subNamespace = 'agents';
export default {
name: 'OpenedTeamAgents',
components: { AgentPopup, ObjectListPopup, DeleteConfirmationPopup },
components: { ObjectListPopup },
mixins: [openedObjectTableTabMixin, agentSupervisorsAndSkillsPopupMixin, agentStatusMixin],
setup() {
const { dummy } = useDummy({ namespace: `${namespace}/${subNamespace}`, hiddenText: true });
const {
isVisible: isDeleteConfirmationPopup,
deleteCount,
deleteCallback,
askDeleteConfirmation,
closeDelete,
} = useDeleteConfirmationPopup();
return {
dummy,
isDeleteConfirmationPopup,
deleteCount,
deleteCallback,
askDeleteConfirmation,
closeDelete,
};
return { dummy };
},
data: () => ({
namespace,
subNamespace,
tableObjectRouteName: RouteNames.AGENTS, // this.editLink() computing
isAgentPopup: false,
}),
methods: {
openPopup() {
this.isAgentPopup = true;
},
closePopup() {
this.isAgentPopup = false;
},
openSkillsPopup() {
this.isSkillsPopup = true;
},
Expand Down

0 comments on commit eded14f

Please sign in to comment.