mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
Merge branch 'ui-add-remove-nics' of https://git-wip-us.apache.org/repos/asf/cloudstack into ui-add-remove-nics
This commit is contained in:
commit
3b758d176e
@ -14,6 +14,8 @@
|
|||||||
# KIND, either express or implied. See the License for the
|
# KIND, either express or implied. See the License for the
|
||||||
# specific language governing permissions and limitations
|
# specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
label.action.delete.nic=Remove NIC
|
||||||
|
message.action.delete.nic=Please confirm that want to remove this NIC, which will also remove the associated network from the VM.
|
||||||
label.add.affinity.group=Add new affinity group
|
label.add.affinity.group=Add new affinity group
|
||||||
message.delete.affinity.group=Please confirm that you would like to remove this affinity group.
|
message.delete.affinity.group=Please confirm that you would like to remove this affinity group.
|
||||||
label.delete.affinity.group=Delete Affinity Group
|
label.delete.affinity.group=Delete Affinity Group
|
||||||
|
|||||||
@ -25,6 +25,8 @@ under the License.
|
|||||||
<% long now = System.currentTimeMillis(); %>
|
<% long now = System.currentTimeMillis(); %>
|
||||||
<script language="javascript">
|
<script language="javascript">
|
||||||
dictionary = {
|
dictionary = {
|
||||||
|
'label.action.delete.nic': '<fmt:message key="label.action.delete.nic"/>',
|
||||||
|
'message.action.delete.nic': '<fmt:message key="message.action.delete.nic"/>',
|
||||||
'label.add.affinity.group': '<fmt:message key="label.add.affinity.group"/>',
|
'label.add.affinity.group': '<fmt:message key="label.add.affinity.group"/>',
|
||||||
'message.delete.affinity.group': '<fmt:message key="message.delete.affinity.group"/>',
|
'message.delete.affinity.group': '<fmt:message key="message.delete.affinity.group"/>',
|
||||||
'label.delete.affinity.group': '<fmt:message key="label.delete.affinity.group"/>',
|
'label.delete.affinity.group': '<fmt:message key="label.delete.affinity.group"/>',
|
||||||
|
|||||||
@ -1492,20 +1492,31 @@
|
|||||||
|
|
||||||
// Remove NIC/Network from VM
|
// Remove NIC/Network from VM
|
||||||
destroy: {
|
destroy: {
|
||||||
label: 'label.action.delete.network',
|
label: 'label.action.delete.nic',
|
||||||
messages: {
|
messages: {
|
||||||
confirm: function(args) {
|
confirm: function(args) {
|
||||||
return 'message.action.delete.network';
|
return 'message.action.delete.nic';
|
||||||
},
|
},
|
||||||
notification: function(args) {
|
notification: function(args) {
|
||||||
return 'label.action.delete.network';
|
return 'label.action.delete.nic';
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
action: function(args) {
|
action: function(args) {
|
||||||
args.response.success();
|
$.ajax({
|
||||||
|
url: createURL('removeNicFromVirtualMachine'),
|
||||||
|
data: {
|
||||||
|
virtualmachineid: args.context.instances[0].id,
|
||||||
|
nicid: args.context.nics.id
|
||||||
|
},
|
||||||
|
success: function(json) {
|
||||||
|
args.response.success({
|
||||||
|
_custom: { jobId: json.removenicfromvirtualmachineresponse.jobid }
|
||||||
|
})
|
||||||
|
}
|
||||||
|
});
|
||||||
},
|
},
|
||||||
notification: {
|
notification: {
|
||||||
poll: function(args) { args.complete(); }
|
poll: pollAsyncJobResult
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user