creacion de vlans listo
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
</button>
|
||||
<div v-if="showSettingsMenu" class="menu">
|
||||
<button @click="openRawDb">ver rawDB</button>
|
||||
<button @click="openVlanForm">crear VLAN</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -103,6 +104,10 @@
|
||||
<Modal :open="showRawDb" :fullscreen="rawDbFullscreen" title="Raw DB Viewer" @close="closeRawDb">
|
||||
<RawDbViewer @toggle-fullscreen="rawDbFullscreen = !rawDbFullscreen" />
|
||||
</Modal>
|
||||
|
||||
<Modal :open="showVlan" title="Crear VLAN" @close="closeVlan">
|
||||
<VlanForm @success="onVlanCreated" @cancel="closeVlan" />
|
||||
</Modal>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
@@ -112,6 +117,7 @@ import UserCard from './components/UserCard.js';
|
||||
import Modal from './components/Modal.vue';
|
||||
import UserForm from './components/UserForm.vue';
|
||||
import RawDbViewer from './components/RawDbViewer.vue';
|
||||
import VlanForm from './components/VlanForm.vue';
|
||||
|
||||
const users = ref([]);
|
||||
const requests = ref([]);
|
||||
@@ -245,6 +251,10 @@ const showRawDb = ref(false);
|
||||
const rawDbFullscreen = ref(false);
|
||||
function openRawDb() { showSettingsMenu.value = false; showRawDb.value = true; }
|
||||
function closeRawDb() { showRawDb.value = false; }
|
||||
const showVlan = ref(false);
|
||||
function openVlanForm() { showSettingsMenu.value = false; showVlan.value = true; }
|
||||
function closeVlan() { showVlan.value = false; }
|
||||
function onVlanCreated() { showVlan.value = false; }
|
||||
function openSettings() { showSettingsMenu.value = !showSettingsMenu.value; }
|
||||
function openEditUser(u) {
|
||||
userFormMode.value = 'edit';
|
||||
|
||||
Reference in New Issue
Block a user