Mateusz Gapski | 632de22 | 2020-07-09 09:21:33 +0200 | [diff] [blame] | 1 | <template> |
| 2 | <b-container fluid="xl"> |
| 3 | <page-title /> |
| 4 | |
| 5 | <page-section :section-title="$t('pageKvm.subTitle')"> |
| 6 | <div> |
| 7 | <b-button |
| 8 | variant="link" |
| 9 | type="button" |
| 10 | class="button-launch" |
| 11 | @click="openConsoleWindow()" |
| 12 | > |
| 13 | <icon-launch /> |
| 14 | {{ $t('pageKvm.openNewTab') }} |
| 15 | </b-button> |
| 16 | </div> |
| 17 | <div class="terminal-container"> |
| 18 | <kvm-console /> |
| 19 | </div> |
| 20 | </page-section> |
| 21 | </b-container> |
| 22 | </template> |
| 23 | |
| 24 | <script> |
| 25 | import IconLaunch from '@carbon/icons-vue/es/launch/32'; |
| 26 | import PageTitle from '@/components/Global/PageTitle'; |
| 27 | import PageSection from '@/components/Global/PageSection'; |
| 28 | import KvmConsole from './KvmConsole'; |
| 29 | |
| 30 | export default { |
| 31 | name: 'Kvm', |
| 32 | components: { IconLaunch, PageSection, PageTitle, KvmConsole }, |
| 33 | methods: { |
| 34 | openConsoleWindow() { |
| 35 | window.open( |
| 36 | '#/console/kvm', |
| 37 | '_blank', |
| 38 | 'directories=no,titlebar=no,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=600,height=550' |
| 39 | ); |
| 40 | } |
| 41 | } |
| 42 | }; |
| 43 | </script> |
| 44 | |
| 45 | <style scoped> |
| 46 | .button-launch > svg { |
| 47 | height: 25px; |
| 48 | } |
| 49 | .button-launch { |
| 50 | padding-left: 0px; |
| 51 | } |
| 52 | |
| 53 | .terminal-container { |
| 54 | width: 100%; |
| 55 | } |
| 56 | </style> |