update database

This commit is contained in:
manhlab
2021-04-09 11:13:00 -04:00
parent dbe6e18227
commit 176a5839dc
8 changed files with 18 additions and 18 deletions

View File

@@ -137,7 +137,7 @@
class="float-right"
color="success"
>
<CIcon name="cil-check" />Lưu
<CIcon name="cil-check" />Сохранить
</CButton>
<CButton v-else size="sm" @click="createDocument" class="float-right" color="success">
<CIcon name="cil-plus" />Создать
@@ -278,7 +278,7 @@ export default {
await services.document
.update(this.document, this.documentId)
.then(response => {
this.$toast.success("Đã lưu");
this.$toast.success("Сохранено");
this.$emit("update", response.data);
})
.catch(error => {

View File

@@ -54,7 +54,7 @@
color="success"
@click="onClickSave"
>
<CIcon name="cil-check" /> Lưu
<CIcon name="cil-check" /> Сохранить
</CButton>
<CButton
v-if="canDelete && !createMode"
@@ -138,7 +138,7 @@ export default {
.update(this.itemUpdating, this.itemSelected.id)
.then(response => {
this.isShowDetail = false;
this.$toast.success("Đã lưu");
this.$toast.success("Сохранено");
this.fetchList();
})
.catch(error => {

View File

@@ -56,7 +56,7 @@
</CCardBody>
<CCardFooter>
<CButton type="submit" size="sm" @click="updateInfo" class="float-right" color="success">
<CIcon name="cil-check" />Lưu
<CIcon name="cil-check" />Сохранить
</CButton>
</CCardFooter>
</CCard>
@@ -106,7 +106,7 @@ export default {
return await (this.isMe ? services.auth : services.user)
.update(this.user, this.userId)
.then((response) => {
this.$toast.success("Đã lưu");
this.$toast.success("Сохранено");
})
.catch((error) => {
this.toastHttpError(error);

View File

@@ -30,7 +30,7 @@
class="float-right"
color="success"
>
<CIcon name="cil-check" />Thay đổi
<CIcon name="cil-check" />Изменение
</CButton>
</CCardFooter>
</CCard>
@@ -64,7 +64,7 @@ export default {
return await (this.isMe ? services.auth : services.user)
.update(this.password, this.userId)
.then((response) => {
this.$toast.success("Đã thay đổi");
this.$toast.success("Измененно");
})
.catch((error) => {
this.toastHttpError(error);