@things-factory/meta-ui 8.0.44 → 8.0.52

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1629,7 +1629,8 @@ export class MetaUiUtil {
1629
1629
  */
1630
1630
  static async commonButtonCallScenario(pageView, buttonName, action, params) {
1631
1631
  // 시나리오 호출
1632
- let response = await ServiceUtil.callScenario(buttonName, action.name, params)
1632
+ const options = { confirmMessage: action.confirmMessage }
1633
+ let response = await ServiceUtil.callScenario(buttonName, action.name, params, true, options)
1633
1634
 
1634
1635
  // 처리 중 에러가 발생했거나 시나리오 호출 후 처리가 없으면 return
1635
1636
  if (!response.errors && action.after && ValueUtil.isNotEmpty(action.after)) {
@@ -1255,15 +1255,17 @@ export class ServiceUtil {
1255
1255
  * @param {String} scenarioName 호출할 시나리오 명
1256
1256
  * @param {Object} variables 시나리오 호출 변수
1257
1257
  * @param {Object} useMessage 컨펌, 완료 메시지 사용 여부
1258
+ * @param {Object} options 추가 옵션
1258
1259
  * @returns {Object | Boolean} 시나리오 호출 response or false
1259
1260
  */
1260
- static async callScenario(buttonName, scenarioName, variables, useMessage = true) {
1261
+ static async callScenario(buttonName, scenarioName, variables, useMessage = true, options = {}) {
1261
1262
  let confirm = true
1263
+ const { confirmMessage } = options
1262
1264
 
1263
1265
  if (buttonName && useMessage === true) {
1264
1266
  const anwer = await UiUtil.showAlertPopup(
1265
1267
  'button.' + buttonName,
1266
- 'text.are_you_sure',
1268
+ confirmMessage || 'text.are_you_sure',
1267
1269
  'question',
1268
1270
  'confirm',
1269
1271
  'cancel'