From 441b8c5bb7918ecd8501f289346a299e01ad224d Mon Sep 17 00:00:00 2001 From: advplyr Date: Sun, 2 Oct 2022 11:53:53 -0500 Subject: [PATCH] Update:M4b Merge tool moved to manage page --- client/components/modals/item/EditModal.vue | 12 +- client/components/modals/item/tabs/Manage.vue | 256 ------------------ client/components/modals/item/tabs/Tools.vue | 100 +++++++ .../pages/{item => audiobook}/_id/manage.vue | 126 +++++++-- server/Server.js | 2 +- server/controllers/MiscController.js | 4 +- 6 files changed, 213 insertions(+), 287 deletions(-) delete mode 100644 client/components/modals/item/tabs/Manage.vue create mode 100644 client/components/modals/item/tabs/Tools.vue rename client/pages/{item => audiobook}/_id/manage.vue (62%) diff --git a/client/components/modals/item/EditModal.vue b/client/components/modals/item/EditModal.vue index eaa2e117..cac09694 100644 --- a/client/components/modals/item/EditModal.vue +++ b/client/components/modals/item/EditModal.vue @@ -66,9 +66,9 @@ export default { component: 'modals-item-tabs-match' }, { - id: 'manage', - title: 'Manage', - component: 'modals-item-tabs-manage', + id: 'tools', + title: 'Tools', + component: 'modals-item-tabs-tools', mediaType: 'book', admin: true }, @@ -141,10 +141,10 @@ export default { if (tab.mediaType && this.mediaType !== tab.mediaType) return false if (tab.admin && !this.userIsAdminOrUp) return false - if (tab.id === 'manage' && this.isMissing) return false + if (tab.id === 'tools' && this.isMissing) return false - if ((tab.id === 'manage' || tab.id === 'files') && this.userCanDownload) return true - if (tab.id !== 'manage' && tab.id !== 'files' && this.userCanUpdate) return true + if ((tab.id === 'tools' || tab.id === 'files') && this.userCanDownload) return true + if (tab.id !== 'tools' && tab.id !== 'files' && this.userCanUpdate) return true if (tab.id === 'match' && this.userCanUpdate) return true return false }) diff --git a/client/components/modals/item/tabs/Manage.vue b/client/components/modals/item/tabs/Manage.vue deleted file mode 100644 index 48a0a4ec..00000000 --- a/client/components/modals/item/tabs/Manage.vue +++ /dev/null @@ -1,256 +0,0 @@ - - - \ No newline at end of file diff --git a/client/components/modals/item/tabs/Tools.vue b/client/components/modals/item/tabs/Tools.vue new file mode 100644 index 00000000..3ea05089 --- /dev/null +++ b/client/components/modals/item/tabs/Tools.vue @@ -0,0 +1,100 @@ + + + \ No newline at end of file diff --git a/client/pages/item/_id/manage.vue b/client/pages/audiobook/_id/manage.vue similarity index 62% rename from client/pages/item/_id/manage.vue rename to client/pages/audiobook/_id/manage.vue index 89cb07c3..f9198c63 100644 --- a/client/pages/item/_id/manage.vue +++ b/client/pages/audiobook/_id/manage.vue @@ -1,9 +1,20 @@