Skip to content

armgit / dashy

Public Imported from GitHub
0

πŸš€ A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

:fire: Removed obsolete lougout code, and adds translations

Alicia Sykes1ea00ec863f7
diff --git a/src/components/Settings/ConfigLauncher.vue b/src/components/Settings/ConfigLauncher.vue
index ac06658b..92cf2311 100644
--- a/src/components/Settings/ConfigLauncher.vue
+++ b/src/components/Settings/ConfigLauncher.vue
@@ -4,7 +4,7 @@
<span>{{ $t('settings.config-launcher-label') }}</span>
<div class="config-buttons">
<IconSpanner @click="showEditor()" tabindex="-2"
- v-tooltip="tooltip('Update configuration')" />
+ v-tooltip="tooltip($t('settings.config-launcher-tooltip'))" />
</div>
<!-- Modal containing all the configuration options -->
diff --git a/src/components/Settings/SettingsContainer.vue b/src/components/Settings/SettingsContainer.vue
index 00637f08..9c6a1bf6 100644
--- a/src/components/Settings/SettingsContainer.vue
+++ b/src/components/Settings/SettingsContainer.vue
@@ -37,7 +37,6 @@ import ItemSizeSelector from '@/components/Settings/ItemSizeSelector';
import AppButtons from '@/components/Settings/AppButtons';
import KeyboardShortcutInfo from '@/components/Settings/KeyboardShortcutInfo';
import AppInfoModal from '@/components/Configuration/AppInfoModal';
-import { logout as registerLogout } from '@/utils/Auth';
import IconOpen from '@/assets/interface-icons/config-open-settings.svg';
import IconClose from '@/assets/interface-icons/config-close.svg';
import {
@@ -88,13 +87,6 @@ export default {
getInitialTheme() {
return this.appConfig.theme || '';
},
- logout() {
- registerLogout();
- this.$toasted.show('Logged Out');
- setTimeout(() => {
- location.reload(true); // eslint-disable-line no-restricted-globals
- }, 100);
- },
isUserLoggedIn() {
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 {
section {
display: block;