<%@ page title="" language="VB" masterpagefile="~/Template/Master.master" autoeventwireup="false" inherits="PCC_VPS_SDN_AddEditPublicIP, MachSol.MachPanel.Web" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CPH_Content" Runat="Server">

        <!-- Include the external template so the DOM template is available before the module runs -->
    <!--#include virtual="../../../Components/VPS/SDN/AddEditPublicIP.html" -->

    <script type="module">

        import { createApp } from 'vue'
        import AddEditSDNServer from "/Components/VPS/SDN/AddEditPublicIP.js?v=3.6"
        import { getLabelText } from '/Components/Common/utils.js?v=3.6'

        createApp({
            data() {
                return {
                    readOnly: <%= Helper.ReadOnlyRole %>,
                    sdnServers: <%= SDNServers %>,
                    addEditDTO: <%= Newtonsoft.Json.JsonConvert.SerializeObject(AddEditDTO) %>,
                }
            },
            methods: {
                getLabelText,
            },
            components: {
                AddEditSDNServer,
            },
            created: function () {
                //console.log(this.addEditDTO);
            },
            template: `

<AddEditSDNServer :addEditDTO="addEditDTO" :readOnly="readOnly" :sdnServers="sdnServers" />
`
        }).mount('#app');

    </script>

    <div id="app">
    </div>

</asp:Content>

