mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-30 18:24:03 +00:00
Merge pull request #1435 from LoaderB0T/favico
feat: Favicon is updated based on satus page logo
This commit is contained in:
commit
aef7719426
1 changed files with 6 additions and 1 deletions
|
@ -67,7 +67,7 @@
|
||||||
<h1 class="mb-4 title-flex">
|
<h1 class="mb-4 title-flex">
|
||||||
<!-- Logo -->
|
<!-- Logo -->
|
||||||
<span class="logo-wrapper" @click="showImageCropUploadMethod">
|
<span class="logo-wrapper" @click="showImageCropUploadMethod">
|
||||||
<img :src="logoURL" alt class="logo me-2" :class="logoClass" />
|
<img :src="logoURL" alt class="logo me-2" :class="logoClass" @load="statusPageLogoLoaded" />
|
||||||
<font-awesome-icon v-if="enableEditMode" class="icon-upload" icon="upload" />
|
<font-awesome-icon v-if="enableEditMode" class="icon-upload" icon="upload" />
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
|
@ -592,6 +592,11 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
statusPageLogoLoaded(eventPayload) {
|
||||||
|
// Remark: may not work in dev, due to cros
|
||||||
|
favicon.image(eventPayload.target);
|
||||||
|
},
|
||||||
|
|
||||||
createIncident() {
|
createIncident() {
|
||||||
this.enableEditIncidentMode = true;
|
this.enableEditIncidentMode = true;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue