Frontend: Fixed imports (???)
ci/woodpecker/push/ociImagePush Pipeline was successful
Details
ci/woodpecker/push/ociImagePush Pipeline was successful
Details
This commit is contained in:
parent
5c8db9b243
commit
3837980e50
|
@ -42,7 +42,7 @@
|
|||
</span>
|
||||
<span v-if="!isLocal">
|
||||
<span> · </span>
|
||||
<a v-if="!refreshing" @click.stop="refresh">{{
|
||||
<a v-if="!pollRefreshing" @click.stop="refresh">{{
|
||||
i18n.ts.reload
|
||||
}}</a>
|
||||
<span v-else>{{ i18n.ts._poll.refreshing }}</span>
|
||||
|
@ -60,17 +60,15 @@ import * as misskey from "calckey-js";
|
|||
import { sum } from "@/scripts/array";
|
||||
import { pleaseLogin } from "@/scripts/please-login";
|
||||
import * as os from "@/os";
|
||||
import { alert } from "@/os";
|
||||
import { i18n } from "@/i18n";
|
||||
import { useInterval } from "@/scripts/use-interval";
|
||||
import Mfm from "@/components/mfm";
|
||||
|
||||
const props = defineProps<{
|
||||
note: misskey.entities.Note & Required<Pick<misskey.entities.Note, "poll">>;
|
||||
readOnly?: boolean;
|
||||
}>();
|
||||
|
||||
const refreshing = ref(false);
|
||||
const pollRefreshing = ref(false);
|
||||
const remaining = ref(-1);
|
||||
|
||||
const total = computed(() => sum(props.note.poll.choices.map((x) => x.votes)));
|
||||
|
@ -124,7 +122,7 @@ if (props.note.poll.expiresAt) {
|
|||
async function refresh() {
|
||||
if (!props.note.uri) return;
|
||||
|
||||
refreshing.value = true;
|
||||
pollRefreshing.value = true;
|
||||
|
||||
os.api("ap/show", { uri: props.note.uri })
|
||||
.then((obj) => {
|
||||
|
@ -133,13 +131,13 @@ async function refresh() {
|
|||
}
|
||||
})
|
||||
.catch((err) => {
|
||||
alert({
|
||||
os.alert({
|
||||
type: "error",
|
||||
text: err.message + "\n" + (err as any).id,
|
||||
});
|
||||
})
|
||||
.finally(() => {
|
||||
refreshing.value = false;
|
||||
pollRefreshing.value = false;
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue