mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-10 05:46:47 +08:00
Change default density for label templates [SCI-7346]
This commit is contained in:
parent
0c81907ece
commit
538f141aaf
5 changed files with 5 additions and 5 deletions
|
@ -135,7 +135,7 @@
|
||||||
methods: {
|
methods: {
|
||||||
setDefaults() {
|
setDefaults() {
|
||||||
!this.unit && (this.unit = 'in');
|
!this.unit && (this.unit = 'in');
|
||||||
!this.density && (this.density = 8);
|
!this.density && (this.density = 12);
|
||||||
!this.width && (this.width = this.unit === 'in' ? 2 : 50.8);
|
!this.width && (this.width = this.unit === 'in' ? 2 : 50.8);
|
||||||
!this.height && (this.height = this.unit === 'in' ? 1 : 25.4);
|
!this.height && (this.height = this.unit === 'in' ? 1 : 25.4);
|
||||||
},
|
},
|
||||||
|
|
|
@ -8,7 +8,7 @@ class FluicsLabelTemplate < LabelTemplate
|
||||||
height_mm: 12.7,
|
height_mm: 12.7,
|
||||||
content: Extends::DEFAULT_LABEL_TEMPLATE[:zpl],
|
content: Extends::DEFAULT_LABEL_TEMPLATE[:zpl],
|
||||||
unit: 0,
|
unit: 0,
|
||||||
density: 8
|
density: 12
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ class ZebraLabelTemplate < LabelTemplate
|
||||||
height_mm: 12.7,
|
height_mm: 12.7,
|
||||||
content: Extends::DEFAULT_LABEL_TEMPLATE[:zpl],
|
content: Extends::DEFAULT_LABEL_TEMPLATE[:zpl],
|
||||||
unit: 0,
|
unit: 0,
|
||||||
density: 8
|
density: 12
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -4,7 +4,7 @@ class AddLabelTemplateUnits < ActiveRecord::Migration[6.1]
|
||||||
def up
|
def up
|
||||||
change_table :label_templates, bulk: true do |t|
|
change_table :label_templates, bulk: true do |t|
|
||||||
t.integer :unit, default: 0
|
t.integer :unit, default: 0
|
||||||
t.integer :density, default: 8
|
t.integer :density, default: 12
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -712,7 +712,7 @@ CREATE TABLE public.label_templates (
|
||||||
height_mm double precision,
|
height_mm double precision,
|
||||||
height_mm double precision,
|
height_mm double precision,
|
||||||
unit integer DEFAULT 0,
|
unit integer DEFAULT 0,
|
||||||
density integer DEFAULT 8
|
density integer DEFAULT 12
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue