123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- <template>
- <div>
- <modal title="View Punishment">
- <div slot="body">
- <article class="message">
- <div class="message-body">
- <strong>Type:</strong>
- {{ punishment.type }}
- <br />
- <strong>Value:</strong>
- {{ punishment.value }}
- <br />
- <strong>Reason:</strong>
- {{ punishment.reason }}
- <br />
- <strong>Active:</strong>
- {{ punishment.active }}
- <br />
- <strong>Expires at:</strong>
- {{
- moment(punishment.expiresAt).format(
- "MMMM Do YYYY, h:mm:ss a"
- )
- }}
- ({{ moment(punishment.expiresAt).fromNow() }})
- <br />
- <strong>Punished at:</strong>
- {{
- moment(punishment.punishedAt).format(
- "MMMM Do YYYY, h:mm:ss a"
- )
- }}
- ({{ moment(punishment.punishedAt).fromNow() }})
- <br />
- <strong>Punished by:</strong>
- {{ punishment.punishedBy }}
- <br />
- </div>
- </article>
- </div>
- <div slot="footer">
- <button class="button is-danger" @click="$parent.toggleModal()">
- <span> Close</span>
- </button>
- </div>
- </modal>
- </div>
- </template>
- <script>
- import { mapState } from "vuex";
- import io from "../../io";
- import Modal from "./Modal.vue";
- export default {
- components: { Modal },
- data() {
- return {
- ban: {},
- moment
- };
- },
- computed: {
- ...mapState("admin/punishments", {
- punishment: state => state.punishment
- })
- },
- mounted: function() {
- let _this = this;
- io.getSocket(socket => (_this.socket = socket));
- },
- methods: {}
- };
- </script>
|