mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
Client Fixes (#9021)
* pass the timezoneoffset to the server * implement yesterdaily modal timer * fix typos * todo * task editing: checklist should not overlay the tags box * make tags selector use two columns * show all tags * do not allow users to go to /login and /register if logged in
This commit is contained in:
@@ -1,5 +1,12 @@
|
||||
<template lang="pug">
|
||||
b-modal#yesterdaily(size='m', :hide-header="true", :hide-footer="true")
|
||||
b-modal#yesterdaily(
|
||||
size="m",
|
||||
:hide-header="true",
|
||||
:hide-footer="true",
|
||||
:no-close-on-backdrop="true",
|
||||
:no-close-on-esc="true",
|
||||
@hide="$emit('hide')",
|
||||
)
|
||||
.modal-body
|
||||
h1.header-welcome.text-center {{ $t('welcomeBack') }}
|
||||
p.call-to-action.text-center {{ $t('checkOffYesterDailies') }}
|
||||
@@ -44,7 +51,6 @@
|
||||
</style>
|
||||
|
||||
<script>
|
||||
import axios from 'axios';
|
||||
import moment from 'moment';
|
||||
import { mapState } from 'client/libs/store';
|
||||
import bModal from 'bootstrap-vue/lib/components/modal';
|
||||
@@ -71,9 +77,6 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
async close () {
|
||||
await axios.post('/api/v3/cron');
|
||||
// @TODO: Better way to sync user?
|
||||
window.location.href = '/';
|
||||
this.$root.$emit('hide::modal', 'yesterdaily');
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user