1
0
mirror of https://github.com/axllent/mailpit.git synced 2024-12-30 23:17:59 +02:00

UI: Enable tag colors by default

This commit is contained in:
Ralph Slooten 2023-12-01 15:30:14 +13:00
parent 1c565dc564
commit ceb4c03dc3
2 changed files with 4 additions and 4 deletions

View File

@ -13,7 +13,7 @@ export default {
beforeMount() {
document.title = document.title + ' - ' + location.hostname
mailbox.showTagColors = localStorage.getItem('showTagsColors') == '1'
mailbox.showTagColors = !localStorage.getItem('hideTagColors') == '1'
// load global config
this.get(this.resolve('/api/v1/webui'), false, function (response) {

View File

@ -17,7 +17,7 @@ export const mailbox = reactive({
count: 0, // total in mailbox or search
messages: [], // current messages
tags: [], // all tags
showTagColors: false, // show tag colors?
showTagColors: true, // show/hide tag colors
selected: [], // currently selected
connected: false, // websocket connection
searching: false, // current search, false for none
@ -51,9 +51,9 @@ watch(
() => mailbox.showTagColors,
(v) => {
if (v) {
localStorage.setItem('showTagsColors', '1')
localStorage.removeItem('hideTagColors')
} else {
localStorage.removeItem('showTagsColors')
localStorage.setItem('hideTagColors', '1')
}
}
)