diff --git a/hwe/ts/components/MessagePanel.vue b/hwe/ts/components/MessagePanel.vue index bc789b44..df27ee9d 100644 --- a/hwe/ts/components/MessagePanel.vue +++ b/hwe/ts/components/MessagePanel.vue @@ -1,64 +1,74 @@ @@ -90,11 +100,6 @@ const generalName = toRef(props, "generalName"); const nationID = toRef(props, "nationID"); const permissionLevel = toRef(props, "permissionLevel"); -onMounted(() => { - console.log("MessagePanel mounted"); - console.log(props); -}); - const lastSequence = ref(-1); const initRefreshLimit = 20; @@ -236,7 +241,7 @@ async function tryRefresh() { } catch (e) { if (isString(e)) { toasts.warning({ - title: '갱신 실패', + title: "갱신 실패", body: e, }); } @@ -274,3 +279,38 @@ onMounted(async () => { await tryRefresh(); }); + + \ No newline at end of file diff --git a/hwe/ts/components/MessagePlate.vue b/hwe/ts/components/MessagePlate.vue index 911e39c5..e881ce5d 100644 --- a/hwe/ts/components/MessagePlate.vue +++ b/hwe/ts/components/MessagePlate.vue @@ -2,7 +2,7 @@
@@ -54,7 +54,7 @@ @@ -109,9 +109,9 @@ const emit = defineEmits<{ }>(); const src: Ref = ref(props.modelValue.src); -const dest: Ref = ref(props.modelValue.src); -const srcColorType = computed(() => isBrightColor(src.value.color)) ? "bright" : "dark"; -const destColorType = computed(() => isBrightColor(dest.value.color)) ? "bright" : "dark"; +const dest: Ref = ref(props.modelValue.dest ?? props.modelValue.src); +const srcColorType = computed(() => isBrightColor(src.value.color) ? "bright" : "dark"); +const destColorType = computed(() => isBrightColor(dest.value.color) ? "bright" : "dark"); const msg = toRef(props, "modelValue"); const defaultIcon = `${window.pathConfig.sharedIcon}/default.jpg`; @@ -257,3 +257,104 @@ async function tryDecline() { emit("request-refresh"); } + + \ No newline at end of file