multi check now behaves properly
gitea/salix/pipeline/head There was a failure building this commit
Details
gitea/salix/pipeline/head There was a failure building this commit
Details
This commit is contained in:
parent
6baa9935de
commit
d2dc0bd147
|
@ -8,6 +8,6 @@ comment 'The default configuration of columns for views';
|
|||
INSERT INTO `salix`.`defaultViewConfig` (tableCode, columns)
|
||||
VALUES
|
||||
('itemsIndex', '{"intrastat":false,"stemMultiplier":false}'),
|
||||
('latestBuys', '{"intrastat":false,"description":false,"density":false,"isActive":false,"freightValue":false,"packageValue":false,"isIgnored":false,"price2":false,"minPrice":false,"ektFk":false,"weight":false}');
|
||||
('latestBuys', '{"intrastat":false,"description":false,"density":false,"isActive":false,"freightValue":false,"packageValue":false,"isIgnored":false,"price2":false,"minPrice":true,"ektFk":false,"weight":false,"id":true,"packing":true,"grouping":true,"quantity":true,"size":false,"name":true,"code":true,"origin":true,"family":true,"entryFk":true,"buyingValue":true,"comissionValue":false,"price3":true,"packageFk":true,"packingOut":true}');
|
||||
|
||||
|
|
@ -145,9 +145,8 @@ export default class MultiCheck extends FormInput {
|
|||
toggle() {
|
||||
const data = this.model.data;
|
||||
if (!data) return;
|
||||
data.forEach(el => {
|
||||
for (let el of data)
|
||||
el[this.checkField] = this.checkAll;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -158,6 +157,7 @@ ngModule.vnComponent('vnMultiCheck', {
|
|||
model: '<',
|
||||
checkField: '@?',
|
||||
checkAll: '=?',
|
||||
checked: '=?',
|
||||
disabled: '<?'
|
||||
}
|
||||
});
|
||||
|
|
|
@ -128,7 +128,8 @@ async function launchBackTest(done) {
|
|||
if (err)
|
||||
throw err;
|
||||
}
|
||||
launchBackTest.description = `Runs the backend tests once using a random container, can receive --ci arg to save reports on a xml file`;
|
||||
launchBackTest.description = `
|
||||
Runs the backend tests once using a random container, can receive --ci arg to save reports on a xml file`;
|
||||
|
||||
// Backend tests
|
||||
|
||||
|
|
|
@ -28,6 +28,7 @@
|
|||
<tr>
|
||||
<th shrink>
|
||||
<vn-multi-check
|
||||
checked="$ctrl.checkAll"
|
||||
model="model"
|
||||
check-field="$checked"> <!-- Change $checked as default prop -->
|
||||
</vn-multi-check>
|
||||
|
|
|
@ -6,6 +6,7 @@ export default class Controller extends Section {
|
|||
constructor($element, $) {
|
||||
super($element, $);
|
||||
this.editedColumn;
|
||||
this.$checkAll = false;
|
||||
|
||||
this.smartTableOptions = {
|
||||
activeButtons: {
|
||||
|
@ -130,11 +131,7 @@ export default class Controller extends Section {
|
|||
}
|
||||
|
||||
uncheck() {
|
||||
const lines = this.checked;
|
||||
for (let line of lines) {
|
||||
if (line.checked)
|
||||
line.checked = false;
|
||||
}
|
||||
this.checkAll = false;
|
||||
}
|
||||
|
||||
get totalChecked() {
|
||||
|
|
Loading…
Reference in New Issue