Browse Source

fix: table_name -> title

pull/2547/head
Wing-Kam Wong 3 years ago
parent
commit
1e363637b8
  1. 5
      packages/nc-gui/components/ProjectTreeView.vue
  2. 2
      packages/nc-gui/components/project/Table.vue

5
packages/nc-gui/components/ProjectTreeView.vue

@ -1097,7 +1097,7 @@ export default {
window.open(link, "_blank");
},
async checkAndDeleteTable(table, action = 'showDialog') {
this.dialogDeleteTable.tableName = table.table_name
this.dialogDeleteTable.tableName = table.title
this.dialogDeleteTable.nodes = table._nodes
this.dialogDeleteTable.id = table.id
await this.deleteTable(action)
@ -1150,8 +1150,7 @@ export default {
key: id,
value: null
})
this.$toast.info(`Deleted table ${nodes.table_name} successfully`).goAway(3000)
this.$toast.info(`Deleted table ${nodes.title} successfully`).goAway(3000)
} catch (e) {
const msg = await this._extractSdkResponseErrorMsg(e)
this.$toast.error(msg).goAway(3000)

2
packages/nc-gui/components/project/Table.vue

@ -143,7 +143,7 @@ export default {
key: this.deleteId,
value: null
})
this.$toast.info(`Deleted table ${this.nodes.table_name} successfully`).goAway(3000)
this.$toast.info(`Deleted table ${this.nodes.title} successfully`).goAway(3000)
} catch (e) {
const msg = await this._extractSdkResponseErrorMsg(e)
this.$toast.error(msg).goAway(3000)

Loading…
Cancel
Save