Skip to content

Commit

Permalink
refactor: queueTypeName computed deleted [WTEL-4391]
Browse files Browse the repository at this point in the history
  • Loading branch information
VladimirBeria committed Mar 28, 2024
1 parent da2c403 commit d091d6b
Showing 1 changed file with 2 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -213,16 +213,6 @@ export default {
return this.itemInstance.type;
},
queueTypeName() {
return +(Object.entries(QueueTypeProperties).find(([type, { subpath }]) => {
if (subpath === this.$route.params.type) {
this.itemInstance.type = +type;
return true;
}
return false;
}).at(0))
},
tabs() {
const general = {
text: this.$t('objects.general'),
Expand Down Expand Up @@ -303,15 +293,15 @@ export default {
{ name: this.$tc('objects.ccenter.queues.queues', 2), route: baseUrl },
{
name: `${(this.id ? this.pathName : this.$t('objects.new'))} (${title})`,
route: `${baseUrl}/${this.id ? this.id : 'new'}/${QueueTypeProperties[this.queueTypeName].subpath}`,
route: `${baseUrl}/${this.id ? this.id : 'new'}/${QueueTypeProperties[this.queueType].subpath}`,
},
];
},
},
methods: {
async loadPageData() {
await this.setId(this.$route.params.id);
return this.loadItem(this.queueTypeName);
return this.loadItem(this.queueType);
},
// setStartTab() {
// const tab = this.tabs.find(({ value }) => value === this.$route.hash.slice(1));
Expand Down

0 comments on commit d091d6b

Please sign in to comment.