Skip to content

Commit

Permalink
Fix: Add Root Disk Config to Worker
Browse files Browse the repository at this point in the history
  • Loading branch information
choryang committed Dec 22, 2022
1 parent c911f59 commit d0a235f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ function changeConnectionInfo(caller, configName, targetPrefix, objIndex) {
var specObjId = targetPrefix + "SpecId_" + objIndex;
var rootDiskTypeId = targetPrefix + "RootDiskType_" + objIndex;

console.log("mcks : " + provider, specObjId, rootDiskTypeId);

getSpecInfo(provider, configName, specObjId);

getCommonLookupDiskInfo(rootDiskTypeId, provider, configName);// -> getCommonLookupDiskInfoSuccess
Expand Down Expand Up @@ -258,6 +256,8 @@ function addWorkNode() {
addW = addW.replace(/hidden_workerConnectionName/gi, 'workerConnectionName_' + addWorkerIndex);
addW = addW.replace(/hidden_workerCount/gi, 'workerCount_' + addWorkerIndex);
addW = addW.replace(/hidden_workerSpecId/gi, 'workerSpecId_' + addWorkerIndex);
addW = addW.replace(/hidden_workerRootDiskType/gi, 'workerRootDiskType_' + addWorkerIndex);
addW = addW.replace(/hidden_workerRootDiskSize/gi, 'workerRootDiskSize_' + addWorkerIndex);
addW = addW.replace(/hidden_workerRemove/gi, 'workerRemove_' + addWorkerIndex);
addW = addW.replace(/hidden_workerAddCount/gi, 'workerAddCount_' + addWorkerIndex);

Expand Down
16 changes: 15 additions & 1 deletion src/views/operation/manages/mcksmng/NodeConfigure.html
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@
<label><span class="ch">*</span>Connection Name</label>
<select class="selectbox white pline sel_4" name="workerConnectionName"
id="hidden_workerConnectionName"
onchange="changeConnectionInfo('mcksaddwork',this.value, 'worker', '1');">
onchange="changeConnectionInfo('mcksaddwork',this.value, 'worker', 'addedWorker');">
<option value="">Select Connection</option>
</select>
</li>
Expand All @@ -241,6 +241,20 @@
</li>
</ul>
</div>
<div class="ipbox ipbox4">
<ul>
<li>
<label><span class="ch">*</span>Root Disk</label>
<select class="selectbox white pline sel_4" name="workerRootDiskType"
id="hidden_workerRootDiskType" onchange="changeDiskType(this.value);">
<option value="">Select Root Disk Type</option>
</select>
<input type="text" name="workerRootDiskSize" value=""
placeholder="Root Disk Size(GB)" class="pline ip_3" title=""
id="hidden_workerRootDiskSize" />
</li>
</ul>
</div>
</div>
</li>
</ul>
Expand Down

0 comments on commit d0a235f

Please sign in to comment.