Stripe potential sso/nosso section when saving postinstall notes

This commit is contained in:
Johannes Zellner
2025-07-14 15:00:44 +02:00
parent aca85b63ae
commit 15c25329b6
3 changed files with 13 additions and 2 deletions
+3 -1
View File
@@ -3,6 +3,7 @@
import { onMounted, ref, useTemplateRef, inject } from 'vue';
import { Button } from '@cloudron/pankow';
import { prettyDate } from '@cloudron/pankow/utils';
import { stripSsoInfo } from '../../utils.js';
import { marked } from 'marked';
import AppsModel from '../../models/AppsModel.js';
@@ -66,6 +67,7 @@ function onDismiss() {
onMounted(() => {
hasOldChecklist.value = !!Object.keys(props.app.checklist).find((k) => { return props.app.checklist[k].acknowledged; });
noteContent.value = props.app.notes === null ? props.app.manifest.postInstallMessage : props.app.notes;
editing.value = false;
busy.value = false;
});
@@ -131,7 +133,7 @@ onMounted(() => {
<div>
<div v-show="!editing">
<div v-if="noteContent" v-html="marked.parse(noteContent)"></div>
<div v-if="noteContent" v-html="marked.parse(stripSsoInfo(noteContent, app.sso))"></div>
<div v-else class="text-muted hand" @click="onEdit()">{{ placeholder }}</div>
</div>
<div v-show="editing">