mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-30 02:26:31 +00:00
refactor(gui): update eslint rules
Signed-off-by: Pranav C <61551451+pranavxc@users.noreply.github.com>
This commit is contained in:
@@ -110,11 +110,11 @@ export default {
|
||||
filter: '',
|
||||
views: null
|
||||
}),
|
||||
async mounted () {
|
||||
async mounted() {
|
||||
await this.loadViewList()
|
||||
},
|
||||
methods: {
|
||||
async loadViewList () {
|
||||
async loadViewList() {
|
||||
this.views = (await this.$store.dispatch('sqlMgr/ActSqlOp', [{
|
||||
dbAlias: this.db.meta.dbAlias,
|
||||
env: this.$store.getters['project/GtrEnv']
|
||||
@@ -122,7 +122,7 @@ export default {
|
||||
type: 'view'
|
||||
}]))
|
||||
},
|
||||
async save () {
|
||||
async save() {
|
||||
try {
|
||||
await this.$store.dispatch('sqlMgr/ActSqlOp', [{
|
||||
dbAlias: this.db.meta.dbAlias,
|
||||
@@ -141,10 +141,10 @@ export default {
|
||||
...mapGetters({
|
||||
dbAliasList: 'project/GtrDbAliasList'
|
||||
}),
|
||||
edited () {
|
||||
edited() {
|
||||
return this.views && this.views.length && this.views.some(t => t.edited)
|
||||
},
|
||||
roles () {
|
||||
roles() {
|
||||
return this.views && this.views.length ? Object.keys(this.views[0].disabled) : []
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user