Skip to content

Commit 44329ec

Browse files
author
Jessica Wang
committed
CS-14295: cloudstack 3.0 UI - volume page - upload volume dialog - add checksum field.
1 parent d0a0973 commit 44329ec

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎ui/scripts/storage.js‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,10 @@
213213
url: {
214214
label: 'label.url',
215215
validation: { required: true }
216-
}
216+
},
217+
checksum : {
218+
label: 'label.checksum'
219+
}
217220
}
218221
},
219222

@@ -223,6 +226,8 @@
223226
array1.push("&zoneId=" + args.data.availabilityZone);
224227
array1.push("&format=" + args.data.format);
225228
array1.push("&url=" + todb(args.data.url));
229+
if(args.data.checksum != null && args.data.checksum.length > 0)
230+
array1.push("&checksum=" + todb(args.data.checksum));
226231

227232
$.ajax({
228233
url: createURL("uploadVolume" + array1.join("")),

0 commit comments

Comments
 (0)