Skip to content

Commit 83971b5

Browse files
committed
Generalize the warning message
1 parent dc17ef0 commit 83971b5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/components/ZclCreateModifyEndpoint.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ limitations under the License.
123123
<q-dialog v-model="showWarningDialog" persistent>
124124
<zcl-warning-dialog
125125
title="Do you want to proceed?"
126-
message="ZCL device type is being modified which can cause all the configuration on the endpoint to be cleared and re-adjusted."
126+
:message="warningMessage"
127127
cancel-label="No"
128128
ok-label="Yes"
129129
@ok="
@@ -217,6 +217,7 @@ export default {
217217
primaryDeviceTypeTmp: null, // Temp store for the selected primary device type
218218
enableMultipleDevice: false,
219219
enablePrimaryDevice: false,
220+
warningMessage: '',
220221
showWarningDialog: false,
221222
warningDialogReturnValue: null,
222223
deviceTypeMountSnapshot: null,
@@ -391,6 +392,8 @@ export default {
391392
let deviceTypeChanged = true
392393
// this.deviceTypeMountSnapshot
393394
if (deviceTypeChanged) {
395+
this.warningMessage =
396+
'ZCL device type is being modified which can cause all the configuration on the endpoint to be cleared and re-adjusted.'
394397
this.showWarningDialog = true
395398
return
396399
}

0 commit comments

Comments
 (0)