mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
client/tag_categories: load tag_categories after (attempted) login
Fixes #262
This commit is contained in:
@ -28,7 +28,6 @@ router.enter(
|
||||
|
||||
const tags = require('./tags.js');
|
||||
const api = require('./api.js');
|
||||
tags.refreshCategoryColorMap(); // we don't care about errors
|
||||
|
||||
api.fetchConfig().then(() => {
|
||||
// register controller routes
|
||||
@ -61,6 +60,7 @@ api.fetchConfig().then(() => {
|
||||
window.alert('Could not fetch basic configuration from server');
|
||||
}).then(() => {
|
||||
api.loginFromCookies().then(() => {
|
||||
tags.refreshCategoryColorMap();
|
||||
router.start();
|
||||
}, error => {
|
||||
if (window.location.href.indexOf('login') !== -1) {
|
||||
|
Reference in New Issue
Block a user