<%@ page title="" language="VB" masterpagefile="~/Template/Master.master" autoeventwireup="false" inherits="PCC_VPS_SDN_AddEditSDNServer, 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/AddEditSDNServer.html" -->

    <script type="module">

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

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

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

    </script>

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

</asp:Content>

