12 changed files with 202 additions and 246 deletions
@ -1,59 +0,0 @@ |
|||||||
<template> |
|
||||||
<div class="modal fade" id="switcherModal" tabindex="-1" role="dialog" aria-labelledby="switcherModalLabel" |
|
||||||
aria-hidden="true" v-if=""> |
|
||||||
<div class="modal-dialog" role="document"> |
|
||||||
<div class="modal-content"> |
|
||||||
<div class="modal-header"> |
|
||||||
<h5 class="modal-title"><i class="fas fa-random"></i> Portal Switcher</h5> |
|
||||||
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> |
|
||||||
</div> |
|
||||||
<div class="modal-body"> |
|
||||||
<div class="row"> |
|
||||||
<div class="col-12"> |
|
||||||
<div class="form-group"> |
|
||||||
<label class="text-muted">Portalname:</label> |
|
||||||
<input v-if="!portals || portals.length === 0" class="form-control" @change="updateStorage()" @keydown="updateStorage()" v-model="portal"/> |
|
||||||
<select v-else v-model="portal" class="form-control"> |
|
||||||
<option v-for="selectablePortal in portals" :value="selectablePortal">{{ selectablePortal }}</option> |
|
||||||
</select> |
|
||||||
<div class="form-group" v-if="experimental.portalSwitcher"> |
|
||||||
<label> |
|
||||||
<input type="checkbox" class="form-control-checkbox" v-model="publicDB"> |
|
||||||
Auf Standard-DB wechseln? |
|
||||||
</label> |
|
||||||
</div> |
|
||||||
<br/> |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
<template v-if="portal && portal !== ''"> |
|
||||||
<div class="col-12 switch-portal-button"> |
|
||||||
<a class="btn btn-danger btn-switcher" href="javascript:" @click="sendPortalChangeRequest"> |
|
||||||
<i class="fas fa-random"></i> Wechsle Portal |
|
||||||
</a> |
|
||||||
</div> |
|
||||||
<div class="col"> |
|
||||||
<a class="btn btn-info btn-switcher" href="https://my.vemap.docker" target="_blank">Docker</a> |
|
||||||
</div> |
|
||||||
<div class="col"> |
|
||||||
<a class="btn btn-warning btn-switcher" :href="getPortalLink(true)" target="_blank">Test</a> |
|
||||||
</div> |
|
||||||
<div class="col"> |
|
||||||
<a class="btn btn-success btn-switcher" :href="getPortalLink()" target="_blank">Live</a> |
|
||||||
</div> |
|
||||||
</template> |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
</template> |
|
||||||
|
|
||||||
<script> |
|
||||||
export default { |
|
||||||
name: "Switcher" |
|
||||||
} |
|
||||||
</script> |
|
||||||
|
|
||||||
<style scoped> |
|
||||||
|
|
||||||
</style> |
|
Loading…
Reference in new issue