mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-11-17 01:16:27 +01:00
55 lines
1.1 KiB
Vue
55 lines
1.1 KiB
Vue
|
<template>
|
||
|
<mk-window ref="window" is-modal width="450px" height="500px" @closed="$destroy">
|
||
|
<span slot="header">%fa:envelope R% %i18n:@title%</span>
|
||
|
|
||
|
<div data-id="c1136cec-1278-49b1-9ea7-412c1ef794f4" :data-darkmode="$store.state.device.darkmode">
|
||
|
<router-link v-for="req in requests" :key="req.id" :to="req.followee | userPage">{{ req.followee | userName }}</router-link>
|
||
|
</div>
|
||
|
</mk-window>
|
||
|
</template>
|
||
|
|
||
|
<script lang="ts">
|
||
|
import Vue from 'vue';
|
||
|
export default Vue.extend({
|
||
|
data() {
|
||
|
return {
|
||
|
fetching: true,
|
||
|
requests: []
|
||
|
};
|
||
|
},
|
||
|
mounted() {
|
||
|
(this as any).api('following/requests/list').then(requests => {
|
||
|
this.fetching = false;
|
||
|
this.requests = requests;
|
||
|
});
|
||
|
},
|
||
|
methods: {
|
||
|
close() {
|
||
|
(this as any).$refs.window.close();
|
||
|
}
|
||
|
}
|
||
|
});
|
||
|
</script>
|
||
|
|
||
|
<style lang="stylus" scoped>
|
||
|
|
||
|
root(isDark)
|
||
|
padding 16px
|
||
|
|
||
|
> button
|
||
|
margin-bottom 16px
|
||
|
|
||
|
> a
|
||
|
display block
|
||
|
padding 16px
|
||
|
border solid 1px isDark ? #1c2023 : #eee
|
||
|
border-radius 4px
|
||
|
|
||
|
[data-id="c1136cec-1278-49b1-9ea7-412c1ef794f4"][data-darkmode]
|
||
|
root(true)
|
||
|
|
||
|
[data-id="c1136cec-1278-49b1-9ea7-412c1ef794f4"]:not([data-darkmode])
|
||
|
root(false)
|
||
|
|
||
|
</style>
|