Skip to content

Commit

Permalink
Room保存時にダイアログを表示するように
Browse files Browse the repository at this point in the history
  • Loading branch information
mei23 committed Aug 21, 2019
1 parent f5a53a7 commit 8a7b2ed
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions locales/ja-JP.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1926,6 +1926,7 @@ room:
exit: "戻る"
remove: "しまう"
save: "保存"
saved: "保存しました"
clear: "片付け"
clear-confirm: "全ての家具をしまいますか?"
chooseImage: "画像を選択"
Expand Down
10 changes: 10 additions & 0 deletions src/client/app/common/views/pages/room/room.vue
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,16 @@ export default Vue.extend({
this.$root.api('room/update', {
room: room.getRoomInfo(),
floor: Number(this.floor),
}).then(() => {
this.$root.dialog({
type: 'success',
text: this.$t('saved')
});
}).catch((e: any) => {
this.$root.dialog({
type: 'error',
text: e.message
});
});
},
Expand Down

0 comments on commit 8a7b2ed

Please sign in to comment.