This commit is contained in:
kolaente 2021-07-19 11:18:22 +02:00
parent a455fb23d1
commit 46957c389f
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
7 changed files with 16 additions and 16 deletions

View File

@ -1,6 +1,6 @@
export const getListTitle = (l, $t) => { export const getListTitle = (l, $t) => {
if (l.id === -1) { if (l.id === -1) {
return $t('list.pseudo.favorites.title'); return $t('list.pseudo.favorites.title')
} }
return l.title; return l.title
} }

View File

@ -1,12 +1,12 @@
export const getNamespaceTitle = (n, $t) => { export const getNamespaceTitle = (n, $t) => {
if (n.id === -1) { if (n.id === -1) {
return $t('namespace.pseudo.sharedLists.title'); return $t('namespace.pseudo.sharedLists.title')
} }
if (n.id === -2) { if (n.id === -2) {
return $t('namespace.pseudo.favorites.title'); return $t('namespace.pseudo.favorites.title')
} }
if (n.id === -3) { if (n.id === -3) {
return $t('namespace.pseudo.savedFilters.title'); return $t('namespace.pseudo.savedFilters.title')
} }
return n.title; return n.title
} }

View File

@ -48,10 +48,10 @@ const getItemsFromPrefix = (text, prefix) => {
} }
let labelText let labelText
if (p.charAt(0) === `'`) { if (p.charAt(0) === '\'') {
labelText = p.split(`'`)[1] labelText = p.split('\'')[1]
} else if (p.charAt(0) === `"`) { } else if (p.charAt(0) === '"') {
labelText = p.split(`"`)[1] labelText = p.split('"')[1]
} else { } else {
// Only until the next space // Only until the next space
labelText = p.split(' ')[0] labelText = p.split(' ')[0]

View File

@ -9,7 +9,7 @@
* @returns {*} * @returns {*}
*/ */
export const replaceAll = (str, search, replace) => { export const replaceAll = (str, search, replace) => {
const esc = search.replace(/[-/\\^$*+?.()|[\]{}]/g, '\\$&'); const esc = search.replace(/[-/\\^$*+?.()|[\]{}]/g, '\\$&')
const reg = new RegExp(esc, 'ig'); const reg = new RegExp(esc, 'ig')
return str.replace(reg, replace); return str.replace(reg, replace)
} }

View File

@ -41,7 +41,7 @@ export const loadLanguageAsync = lang => {
i18n.setLocaleMessage(lang, messages.default) i18n.setLocaleMessage(lang, messages.default)
loadedLanguages.push(lang) loadedLanguages.push(lang)
return setI18nLanguage(lang) return setI18nLanguage(lang)
} },
) )
} }

View File

@ -73,7 +73,7 @@ import {
faStar, faStar,
faTimesCircle, faTimesCircle,
faSun, faSun,
faBellSlash faBellSlash,
} from '@fortawesome/free-regular-svg-icons' } from '@fortawesome/free-regular-svg-icons'
import {FontAwesomeIcon} from '@fortawesome/vue-fontawesome' import {FontAwesomeIcon} from '@fortawesome/vue-fontawesome'
// PWA // PWA

View File

@ -22,7 +22,7 @@ export default {
return { return {
namespaceService: NamespaceService, namespaceService: NamespaceService,
namespace: null, namespace: null,
title: '' title: '',
} }
}, },
created() { created() {