fix: extended fix for gql & improved ui part

Signed-off-by: mertmit <mertmit99@gmail.com>
This commit is contained in:
mertmit
2022-03-30 13:22:42 +03:00
parent f16cd2e909
commit ea5a936a11
5 changed files with 12 additions and 11 deletions

View File

@@ -176,14 +176,15 @@ export default class GqlApi {
return { list, count }
}
async update(id, data, oldData, params = {}) {
async update(id, data, oldData, cellSaved = false, params = {}) {
const data1 = await this.post(`/nc/${this.$ctx.projectId}/v1/graphql`, {
query: `mutation update($id:String!, $data:${this.tableCamelized}Input){
${this.gqlMutationUpdateName}(id: $id, data: $data){${this.gqlReqBody}${await this.gqlRelationReqBody(params)}}
}`,
variables: {
id, data
}
},
_cellSaved: cellSaved
})
const colName = Object.keys(data)[0]