diff --git a/frontend/src/api/index.js b/frontend/src/api/index.js index 0e9e54bb..d6bb4013 100644 --- a/frontend/src/api/index.js +++ b/frontend/src/api/index.js @@ -343,6 +343,11 @@ export const printersApi = { update(id, data) { return api.put(`/printers/${id}`, data) }, + // Soft delete: the server deactivates the asset, so the printer leaves every + // list while its history and relationships stay intact. + remove(id) { + return api.delete(`/printers/${id}`) + }, updateExtension(id, data) { return api.put(`/printers/${id}/printerdata`, data) }, diff --git a/plugins/computers/frontend/views/PCDetail.vue b/plugins/computers/frontend/views/PCDetail.vue index 09f7a0ba..b288c17c 100644 --- a/plugins/computers/frontend/views/PCDetail.vue +++ b/plugins/computers/frontend/views/PCDetail.vue @@ -5,6 +5,7 @@