merge: upstream
This commit is contained in:
@@ -20,7 +20,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { } from 'vue';
|
||||
import { ref } from 'vue';
|
||||
import * as Misskey from 'misskey-js';
|
||||
import MkContainer from '@/components/MkContainer.vue';
|
||||
import MkChart from '@/components/MkChart.vue';
|
||||
@@ -34,20 +34,20 @@ const props = withDefaults(defineProps<{
|
||||
limit: 50,
|
||||
});
|
||||
|
||||
let chartSrc = $ref('per-user-notes');
|
||||
const chartSrc = ref('per-user-notes');
|
||||
|
||||
function showMenu(ev: MouseEvent) {
|
||||
os.popupMenu([{
|
||||
text: i18n.ts.notes,
|
||||
active: chartSrc === 'per-user-notes',
|
||||
active: chartSrc.value === 'per-user-notes',
|
||||
action: () => {
|
||||
chartSrc = 'per-user-notes';
|
||||
chartSrc.value = 'per-user-notes';
|
||||
},
|
||||
}, {
|
||||
text: i18n.ts.numberOfProfileView,
|
||||
active: chartSrc === 'per-user-pv',
|
||||
active: chartSrc.value === 'per-user-pv',
|
||||
action: () => {
|
||||
chartSrc = 'per-user-pv';
|
||||
chartSrc.value = 'per-user-pv';
|
||||
},
|
||||
}, /*, {
|
||||
text: i18n.ts.following,
|
||||
|
||||
Reference in New Issue
Block a user