Skip to content

Commit

Permalink
admin: Properly change error messages in manage dialogs
Browse files Browse the repository at this point in the history
THESE SHOULD BE CHANGED TO USER-FRIENDLY ERROR MESSAGE LATER
  • Loading branch information
somnisomni committed Nov 1, 2023
1 parent bb5e4cc commit fda7a6f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions projects/Admin/src/components/dialogs/BoothManageDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -169,15 +169,15 @@ export default class BoothManageDialog extends Vue {
if(result === true) {
success = true;
} else {
errorMsg = result as string;
errorMsg = `오류 (${result})`;
}
} else {
const result = await useAdminStore().createBooth(requestData as IBoothCreateRequest);
if(result === true) {
success = true;
} else {
errorMsg = result as string;
errorMsg = `오류 (${result})`;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export default class GoodsCategoryManageDialog extends Vue {
if(result === true) {
success = true;
} else {
errorMsg = result as string;
errorMsg = `오류 (${result})`;
}
} else {
const requestData: IGoodsCategoryCreateRequest = {
Expand All @@ -147,7 +147,7 @@ export default class GoodsCategoryManageDialog extends Vue {
if(result === true) {
success = true;
} else {
errorMsg = result as string;
errorMsg = `오류 (${result})`;
}
}
Expand Down
4 changes: 2 additions & 2 deletions projects/Admin/src/components/dialogs/GoodsManageDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ export default class GoodsManageDialog extends Vue {
if(result === true) {
success = true;
} else {
errorMsg = result as string;
errorMsg = `오류 (${result})`;
}
} else {
const requestData: IGoodsCreateRequest = {
Expand All @@ -257,7 +257,7 @@ export default class GoodsManageDialog extends Vue {
if(result === true) {
success = true;
} else {
errorMsg = result as string;
errorMsg = `오류 (${result})`;
}
}
Expand Down

0 comments on commit fda7a6f

Please sign in to comment.