Skip to content

Modular logistics and supply chain operating system (LSOS)

refactor: remove unnecessary contextTypeLabel computed property from Template model

Ronald A Richardsonb2fe2b909b07
diff --git a/console/app/models/template.js b/console/app/models/template.js
index c9396dac..c81ab0c0 100644
--- a/console/app/models/template.js
+++ b/console/app/models/template.js
@@ -41,21 +41,6 @@ export default class TemplateModel extends Model {
return this.status === 'published';
}
- @computed('context_type') get contextTypeLabel() {
- const labels = {
- invoice: 'Invoice',
- order: 'Order',
- transaction: 'Transaction',
- wallet: 'Wallet',
- contact: 'Contact',
- company: 'Company',
- shipment: 'Shipment',
- waybill: 'Waybill',
- receipt: 'Receipt',
- };
- return labels[this.context_type] ?? this.context_type;
- }
-
@computed('paper_size', 'orientation') get dimensionLabel() {
if (this.paper_size === 'custom') {
return `${this.width} × ${this.height} ${this.unit}`;