@yoobic/yobi 8.3.0-45 → 8.3.0-46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -111,9 +111,8 @@ const YooFormTodoTaskListComponent = class {
|
|
|
111
111
|
return updated;
|
|
112
112
|
}
|
|
113
113
|
async deleteTask(index, withConfirmation = true) {
|
|
114
|
-
var _a, _b;
|
|
115
114
|
const result = withConfirmation
|
|
116
|
-
? await overlays.showAlert(overlays.translate('DELETETASK'), [overlays.translate('CANCEL'), { cssClass: 'danger', text: overlays.translate('DELETE') }], overlays.translate('CONFIRMDELETETASK'
|
|
115
|
+
? await overlays.showAlert(overlays.translate('DELETETASK'), [overlays.translate('CANCEL'), { cssClass: 'danger', text: overlays.translate('DELETE') }], overlays.translate('CONFIRMDELETETASK'))
|
|
117
116
|
: true;
|
|
118
117
|
if (result) {
|
|
119
118
|
this.updateValue({ ...this.value, values: [...this.value.values.slice(0, index), ...this.value.values.slice(index + 1)] });
|
|
@@ -96,9 +96,8 @@ export class YooFormTodoTaskListComponent {
|
|
|
96
96
|
return updated;
|
|
97
97
|
}
|
|
98
98
|
async deleteTask(index, withConfirmation = true) {
|
|
99
|
-
var _a, _b;
|
|
100
99
|
const result = withConfirmation
|
|
101
|
-
? await showAlert(translate('DELETETASK'), [translate('CANCEL'), { cssClass: 'danger', text: translate('DELETE') }], translate('CONFIRMDELETETASK'
|
|
100
|
+
? await showAlert(translate('DELETETASK'), [translate('CANCEL'), { cssClass: 'danger', text: translate('DELETE') }], translate('CONFIRMDELETETASK'))
|
|
102
101
|
: true;
|
|
103
102
|
if (result) {
|
|
104
103
|
this.updateValue({ ...this.value, values: [...this.value.values.slice(0, index), ...this.value.values.slice(index + 1)] });
|
|
@@ -107,9 +107,8 @@ const YooFormTodoTaskListComponent = class {
|
|
|
107
107
|
return updated;
|
|
108
108
|
}
|
|
109
109
|
async deleteTask(index, withConfirmation = true) {
|
|
110
|
-
var _a, _b;
|
|
111
110
|
const result = withConfirmation
|
|
112
|
-
? await showAlert(translate('DELETETASK'), [translate('CANCEL'), { cssClass: 'danger', text: translate('DELETE') }], translate('CONFIRMDELETETASK'
|
|
111
|
+
? await showAlert(translate('DELETETASK'), [translate('CANCEL'), { cssClass: 'danger', text: translate('DELETE') }], translate('CONFIRMDELETETASK'))
|
|
113
112
|
: true;
|
|
114
113
|
if (result) {
|
|
115
114
|
this.updateValue({ ...this.value, values: [...this.value.values.slice(0, index), ...this.value.values.slice(index + 1)] });
|
|
@@ -107,9 +107,8 @@ const YooFormTodoTaskListComponent = class {
|
|
|
107
107
|
return updated;
|
|
108
108
|
}
|
|
109
109
|
async deleteTask(index, withConfirmation = true) {
|
|
110
|
-
var _a, _b;
|
|
111
110
|
const result = withConfirmation
|
|
112
|
-
? await showAlert(translate('DELETETASK'), [translate('CANCEL'), { cssClass: 'danger', text: translate('DELETE') }], translate('CONFIRMDELETETASK'
|
|
111
|
+
? await showAlert(translate('DELETETASK'), [translate('CANCEL'), { cssClass: 'danger', text: translate('DELETE') }], translate('CONFIRMDELETETASK'))
|
|
113
112
|
: true;
|
|
114
113
|
if (result) {
|
|
115
114
|
this.updateValue({ ...this.value, values: [...this.value.values.slice(0, index), ...this.value.values.slice(index + 1)] });
|