1
1
mirror of https://github.com/Fabio286/antares.git synced 2025-03-12 01:10:09 +01:00

fix: manual page input not disabled when only one page is available

This commit is contained in:
Fabio Di Stasio 2021-07-23 09:01:50 +02:00
parent 14577d14bb
commit 62f7e57d0c
2 changed files with 8 additions and 3 deletions

View File

@ -458,8 +458,13 @@ export default {
: this.localRow.default
: '';
}
else if (this.defaultValue.type === 'expression')
this.defaultValue.expression = this.localRow.default;
else if (this.defaultValue.type === 'expression') {
console.log(this.localRow.default);
if (this.localRow.default.toUpperCase().includes('ON UPDATE'))
this.defaultValue.expression = this.localRow.default.replace(/ on update.*$/i, '');
else
this.defaultValue.expression = this.localRow.default;
}
},
editON (event, content, field) {
if (field === 'length') {

View File

@ -328,7 +328,7 @@ export default {
this.getTableData();
},
openPageMenu () {
if (this.isQuering) return;
if (this.isQuering || (this.results.length && this.results[0].rows.length < this.limit && this.page === 1)) return;
this.isPageMenu = true;
if (this.isPageMenu)