fix merge defect
This commit is contained in:
parent
26be9bacc8
commit
9bfe864178
|
@ -37,7 +37,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { computed, watch } from 'vue';
|
import { computed, watch, ref } from 'vue';
|
||||||
import MkInput from '@/components/MkInput.vue';
|
import MkInput from '@/components/MkInput.vue';
|
||||||
import MkSelect from '@/components/MkSelect.vue';
|
import MkSelect from '@/components/MkSelect.vue';
|
||||||
import MkSwitch from '@/components/MkSwitch.vue';
|
import MkSwitch from '@/components/MkSwitch.vue';
|
||||||
|
@ -66,7 +66,7 @@ const props = defineProps<{
|
||||||
previousExpiresAt?: string;
|
previousExpiresAt?: string;
|
||||||
}
|
}
|
||||||
}>();
|
}>();
|
||||||
let expirationDate: Date | null = $ref(null);
|
const expirationDate = ref<Date | null>(null);
|
||||||
|
|
||||||
type NonNullType<T> = {
|
type NonNullType<T> = {
|
||||||
[P in keyof T]: NonNullable<T[P]>
|
[P in keyof T]: NonNullable<T[P]>
|
||||||
|
@ -105,9 +105,9 @@ const value = computed({
|
||||||
|
|
||||||
function renderExpirationDate(empty = false) {
|
function renderExpirationDate(empty = false) {
|
||||||
if (value.value.expirationDate && !empty) {
|
if (value.value.expirationDate && !empty) {
|
||||||
expirationDate = new Date(value.value.expirationDate);
|
expirationDate.value = new Date(value.value.expirationDate);
|
||||||
} else {
|
} else {
|
||||||
expirationDate = null;
|
expirationDate.value = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -142,12 +142,6 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
</template>
|
</template>
|
||||||
</I18n>
|
</I18n>
|
||||||
</div>
|
</div>
|
||||||
<div v-else>
|
|
||||||
<!--
|
|
||||||
MkDateSeparatedList uses TransitionGroup which requires single element in the child elements
|
|
||||||
so MkNote create empty div instead of no elements
|
|
||||||
-->
|
|
||||||
</div>
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
|
|
|
@ -321,7 +321,7 @@ watch(visibility, () => {
|
||||||
|
|
||||||
const prepend = (item: MisskeyEntity): void => {
|
const prepend = (item: MisskeyEntity): void => {
|
||||||
// 初回表示時はunshiftだけでOK
|
// 初回表示時はunshiftだけでOK
|
||||||
if (!rootEl) {
|
if (!rootEl.value) {
|
||||||
items.value.unshift(item);
|
items.value.unshift(item);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -66,7 +66,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { ref } from 'vue';
|
import { ref, shallowRef } from 'vue';
|
||||||
import * as Misskey from 'misskey-js';
|
import * as Misskey from 'misskey-js';
|
||||||
import MkModalWindow from '@/components/MkModalWindow.vue';
|
import MkModalWindow from '@/components/MkModalWindow.vue';
|
||||||
import MkButton from '@/components/MkButton.vue';
|
import MkButton from '@/components/MkButton.vue';
|
||||||
|
@ -99,10 +99,10 @@ const emit = defineEmits<{
|
||||||
(ev: 'closed'): void
|
(ev: 'closed'): void
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
const announceTitleEl = $shallowRef<HTMLInputElement | null>(null);
|
const announceTitleEl = shallowRef<HTMLInputElement | null>(null);
|
||||||
|
|
||||||
function insertEmoji(ev: MouseEvent): void {
|
function insertEmoji(ev: MouseEvent): void {
|
||||||
os.openEmojiPicker((ev.currentTarget ?? ev.target) as HTMLElement, {}, announceTitleEl);
|
os.openEmojiPicker((ev.currentTarget ?? ev.target) as HTMLElement, {}, announceTitleEl.value);
|
||||||
}
|
}
|
||||||
|
|
||||||
async function done(): Promise<void> {
|
async function done(): Promise<void> {
|
||||||
|
|
|
@ -120,7 +120,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { onMounted, ref } from 'vue';
|
import { onMounted, ref, computed } from 'vue';
|
||||||
import FormSection from '@/components/form/section.vue';
|
import FormSection from '@/components/form/section.vue';
|
||||||
import MkKeyValue from '@/components/MkKeyValue.vue';
|
import MkKeyValue from '@/components/MkKeyValue.vue';
|
||||||
import * as os from '@/os.js';
|
import * as os from '@/os.js';
|
||||||
|
@ -140,9 +140,9 @@ onMounted(() => {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
const headerActions = $computed(() => []);
|
const headerActions = computed(() => []);
|
||||||
|
|
||||||
const headerTabs = $computed(() => []);
|
const headerTabs = computed(() => []);
|
||||||
|
|
||||||
definePageMetadata({
|
definePageMetadata({
|
||||||
title: i18n.ts.accountInfo,
|
title: i18n.ts.accountInfo,
|
||||||
|
|
Loading…
Reference in a new issue