mirror of
https://github.com/elk-zone/elk
synced 2024-12-03 01:08:07 +09:00
23 lines
791 B
Vue
23 lines
791 B
Vue
|
<template>
|
||
|
<div
|
||
|
v-if="$pwa?.showInstallPrompt && !$pwa?.needRefresh"
|
||
|
m-2 p5 bg="primary-fade" relative
|
||
|
rounded-lg of-hidden
|
||
|
flex="~ col gap-3"
|
||
|
v-bind="$attrs"
|
||
|
>
|
||
|
<h2 flex="~ gap-2" items-center>
|
||
|
{{ $t('pwa.install_title') }}
|
||
|
</h2>
|
||
|
<div flex="~ gap-1">
|
||
|
<button type="button" btn-solid px-4 py-1 text-center text-sm @click="$pwa.install()">
|
||
|
{{ $t('pwa.install') }}
|
||
|
</button>
|
||
|
<button type="button" btn-text filter-saturate-0 px-4 py-1 text-center text-sm @click="$pwa.cancelInstall()">
|
||
|
{{ $t('pwa.dismiss') }}
|
||
|
</button>
|
||
|
</div>
|
||
|
<div i-material-symbols:install-desktop-rounded absolute text-6em bottom--2 inset-ie--2 text-primary dark:text-white op10 dark:op45 class="-z-1 rtl-flip" />
|
||
|
</div>
|
||
|
</template>
|