Fixes totalRemaining column update after term insertion #775.

This commit is contained in:
mateuswetah 2023-05-09 10:38:44 -03:00
parent 87684d2897
commit a64e4ddabb
4 changed files with 4 additions and 3 deletions

View File

@ -224,7 +224,7 @@
.tainacan-media-component__swiper-thumbs li.swiper-slide {
text-align: center;
vertical-align: top;
word-break: break-all;
word-break: break-word;
font-size: 0.875em;
max-width: calc(var(--tainacan-media-thumbs-carousel-item-size, 136px) + 17px); }
@media only screen and (max-width: 380px) {

File diff suppressed because one or more lines are too long

View File

@ -297,7 +297,7 @@ export default {
this.isMapperMetadataLoading = true;
this.mapper = metadatumMapper; //TODO try to use v-model again
this.mapperMetadata = [];
console.log(this.activeMetadatumList)
if (metadatumMapper != '') {
for (var k in metadatumMapper.metadata) {
var item = metadatumMapper.metadata[k];

View File

@ -602,6 +602,7 @@ export default {
this.termColumns[updatedTermParentColumn].children.push(term);
this.termColumns[updatedTermParentColumn].total_children = Number(this.termColumns[updatedTermParentColumn].total_children) + 1;
this.totalRemaining[updatedTermParentColumn].remaining = Number(this.totalRemaining[updatedTermParentColumn].remaining) + 1;
if ( this.termColumns[updatedTermParentColumn - 1] ) {
const parentTermIndex = this.termColumns[updatedTermParentColumn - 1].children.findIndex((aTerm) => aTerm.id== term.parent);