mirror of
https://github.com/Lissy93/dashy.git
synced 2025-07-27 07:34:43 +02:00
🔥 Removed obsolete lougout code, and adds translations
This commit is contained in:
parent
25289f3861
commit
1ea00ec863
@ -4,7 +4,7 @@
|
|||||||
<span>{{ $t('settings.config-launcher-label') }}</span>
|
<span>{{ $t('settings.config-launcher-label') }}</span>
|
||||||
<div class="config-buttons">
|
<div class="config-buttons">
|
||||||
<IconSpanner @click="showEditor()" tabindex="-2"
|
<IconSpanner @click="showEditor()" tabindex="-2"
|
||||||
v-tooltip="tooltip('Update configuration')" />
|
v-tooltip="tooltip($t('settings.config-launcher-tooltip'))" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Modal containing all the configuration options -->
|
<!-- Modal containing all the configuration options -->
|
||||||
|
@ -37,7 +37,6 @@ import ItemSizeSelector from '@/components/Settings/ItemSizeSelector';
|
|||||||
import AppButtons from '@/components/Settings/AppButtons';
|
import AppButtons from '@/components/Settings/AppButtons';
|
||||||
import KeyboardShortcutInfo from '@/components/Settings/KeyboardShortcutInfo';
|
import KeyboardShortcutInfo from '@/components/Settings/KeyboardShortcutInfo';
|
||||||
import AppInfoModal from '@/components/Configuration/AppInfoModal';
|
import AppInfoModal from '@/components/Configuration/AppInfoModal';
|
||||||
import { logout as registerLogout } from '@/utils/Auth';
|
|
||||||
import IconOpen from '@/assets/interface-icons/config-open-settings.svg';
|
import IconOpen from '@/assets/interface-icons/config-open-settings.svg';
|
||||||
import IconClose from '@/assets/interface-icons/config-close.svg';
|
import IconClose from '@/assets/interface-icons/config-close.svg';
|
||||||
import {
|
import {
|
||||||
@ -88,13 +87,6 @@ export default {
|
|||||||
getInitialTheme() {
|
getInitialTheme() {
|
||||||
return this.appConfig.theme || '';
|
return this.appConfig.theme || '';
|
||||||
},
|
},
|
||||||
logout() {
|
|
||||||
registerLogout();
|
|
||||||
this.$toasted.show('Logged Out');
|
|
||||||
setTimeout(() => {
|
|
||||||
location.reload(true); // eslint-disable-line no-restricted-globals
|
|
||||||
}, 100);
|
|
||||||
},
|
|
||||||
isUserLoggedIn() {
|
isUserLoggedIn() {
|
||||||
return !!localStorage[localStorageKeys.USERNAME];
|
return !!localStorage[localStorageKeys.USERNAME];
|
||||||
},
|
},
|
||||||
@ -199,25 +191,6 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
svg.logout-icon {
|
|
||||||
path {
|
|
||||||
fill: var(--settings-text-color);
|
|
||||||
}
|
|
||||||
width: 1rem;
|
|
||||||
height: 1rem;
|
|
||||||
margin: 0.35rem 0.2rem;
|
|
||||||
padding: 0.2rem;
|
|
||||||
text-align: center;
|
|
||||||
background: var(--background);
|
|
||||||
border: 1px solid var(--settings-text-color);;
|
|
||||||
border-radius: var(--curve-factor);
|
|
||||||
cursor: pointer;
|
|
||||||
&:hover, &.selected {
|
|
||||||
background: var(--settings-text-color);
|
|
||||||
path { fill: var(--background); }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@include tablet {
|
@include tablet {
|
||||||
section {
|
section {
|
||||||
display: block;
|
display: block;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user