@things-factory/meta-ui 8.0.0-alpha.27 → 8.0.0-alpha.29
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.
|
@@ -1149,6 +1149,7 @@ export class MetaUiUtil {
|
|
|
1149
1149
|
* @param {Object} logic 버튼 커스텀 로직 JSON
|
|
1150
1150
|
*/
|
|
1151
1151
|
static async gristScreenCustomButtonHandler(pageView, buttonName, logic) {
|
|
1152
|
+
var _a, _b;
|
|
1152
1153
|
if (ValueUtil.isEmpty(logic))
|
|
1153
1154
|
return;
|
|
1154
1155
|
let grist = pageView.grist;
|
|
@@ -1164,8 +1165,8 @@ export class MetaUiUtil {
|
|
|
1164
1165
|
UiUtil.showAlertPopup('title.info', 'text.grid_is_not_exist', 'info', 'confirm');
|
|
1165
1166
|
return;
|
|
1166
1167
|
}
|
|
1167
|
-
// 그리스트 데이터 존재 여부
|
|
1168
|
-
if ((grist
|
|
1168
|
+
// 그리스트 데이터 존재 여부 (편집중 데이터도 체크)
|
|
1169
|
+
if ((((_a = grist === null || grist === void 0 ? void 0 : grist.data) === null || _a === void 0 ? void 0 : _a.records) || []).length == 0 && (((_b = grist === null || grist === void 0 ? void 0 : grist.dirtyData) === null || _b === void 0 ? void 0 : _b.records) || []).length == 0) {
|
|
1169
1170
|
// 비어있는 그리드 입니다.
|
|
1170
1171
|
UiUtil.showAlertPopup('title.info', 'text.grid_data_is_empty', 'info', 'confirm');
|
|
1171
1172
|
return;
|