diff --git a/ui/sections/storage/inspectors/volume-creator.reel/volume-creator.html b/ui/sections/storage/inspectors/volume-creator.reel/volume-creator.html index d5369550c1..88579c9058 100644 --- a/ui/sections/storage/inspectors/volume-creator.reel/volume-creator.html +++ b/ui/sections/storage/inspectors/volume-creator.reel/volume-creator.html @@ -29,11 +29,13 @@ "canRevert": true, "scrollViewDelegate": {"@": "owner"}, "controller": {"@": "owner"}, + "confirmSaveMessage": "Are you sure you want to use encryption for this volume? Data loss can result if keys or passwords are lost!", "canSave": true }, "bindings": { "isLoading": {"<-": "@owner.isLoading"}, "context": {"<-": "@owner.context"}, + "needSaveConfirmation": {"<-": "@owner.object._password || @owner.object.key_encrypted"}, "isSaveDisabled": {"<-": "@owner.object.topology.data.length == 0"} } }, diff --git a/ui/sections/storage/inspectors/volume.reel/volume.html b/ui/sections/storage/inspectors/volume.reel/volume.html index c990f55c4d..825ad1f9b4 100644 --- a/ui/sections/storage/inspectors/volume.reel/volume.html +++ b/ui/sections/storage/inspectors/volume.reel/volume.html @@ -57,6 +57,7 @@ }, "bindings": { "context": {"<-": "@owner.context"}, + "classList.has('other-confirmation-is-visible')": {"<-": "@owner.isUpgradeConfirmationVisible"}, "isConfirmationVisible": {"<-": "@owner.isConfirmationVisible"} } }, @@ -161,6 +162,19 @@ "classList.has('hide')": {"<-": "@owner.object.status == 'LOCKED'"} } }, + "confirmationUpgrade": { + "prototype": "ui/inspectors/inspector.reel/inspector-confirmation.reel", + "properties": { + "element": {"#": "confirmationUpgrade"}, + "inspector": {"@": "owner"}, + "confirmMethod": "confirmUpgrade", + "cancelMethod": "cancelUpgrade", + "confirmLabel": "Upgrade" + }, + "bindings": { + "confirmMessage": {"<-": "'Are you sure you want to upgrade your volume? Once it is upgraded you will no longer be able to import it on previous versions of FreeNAS.'"} + } + }, "upgrade": { "prototype": "blue-shark/ui/button.reel", "properties": { @@ -196,6 +210,7 @@