Fixed PR commentaries, updated .gitignore [SCI-10717]

This commit is contained in:
Klemen Benedicic 2024-05-24 13:44:51 +02:00
parent c304277712
commit 61d779c6ed
2 changed files with 10 additions and 7 deletions

3
.gitignore vendored
View file

@ -95,3 +95,6 @@ public/marvin4js-license.cxl
/app/assets/builds/*
!/app/assets/builds/.keep
# Ignore npm files
package-lock.json

View file

@ -57,22 +57,22 @@ export default {
return {
resolvePromise: null,
rejectPromise: null
}
};
},
methods: {
show: function() {
show() {
$(this.$refs.modal).modal('show');
return new Promise((resolve, reject) => {
this.resolvePromise = resolve
this.rejectPromise = reject
})
this.resolvePromise = resolve;
this.rejectPromise = reject;
});
},
confirm() {
this.resolvePromise(true)
this.resolvePromise(true);
$(this.$refs.modal).modal('hide');
},
cancel() {
this.resolvePromise(false)
this.resolvePromise(false);
$(this.$refs.modal).modal('hide');
}
}