sync
This commit is contained in:
@@ -37,7 +37,7 @@ export default class Signature extends OptionBase {
|
||||
|
||||
async show() {
|
||||
const popup = new Popup({
|
||||
title: this.r('P_IPT_SIGNATURE', 'Signature'),
|
||||
title: this.r('FLTL_02770', 'Signature'),
|
||||
content: this._var.canvas = createElement('canvas', canvas => {
|
||||
canvas.style.width = '100%';
|
||||
canvas.style.height = '100%';
|
||||
@@ -56,7 +56,7 @@ export default class Signature extends OptionBase {
|
||||
},
|
||||
buttons: [
|
||||
{
|
||||
text: this.r('P_GRID_OK', 'OK'),
|
||||
text: this.r('FLTL_02057', 'OK'),
|
||||
trigger: () => {
|
||||
if (this._var.allPoints.length === 0) {
|
||||
return false;
|
||||
@@ -65,14 +65,14 @@ export default class Signature extends OptionBase {
|
||||
}
|
||||
},
|
||||
{
|
||||
text: this.r('P_GRID_RESET', 'Reset'),
|
||||
text: this.r('FLTL_02479', 'Reset'),
|
||||
trigger: () => {
|
||||
const ctx = this._var.canvas.getContext('2d');
|
||||
ctx.clearRect(0, 0, this._var.canvas.width, this._var.canvas.height);
|
||||
return false
|
||||
}
|
||||
},
|
||||
{ text: this.r('P_WO_CANCEL', 'Cancel') }
|
||||
{ text: this.r('FLTL_00499', 'Cancel') }
|
||||
]
|
||||
});
|
||||
this._var.popup = popup;
|
||||
|
||||
Reference in New Issue
Block a user