Skip to content

Commit

Permalink
Fix linter
Browse files Browse the repository at this point in the history
Signed-off-by: Vitor Mattos <[email protected]>
  • Loading branch information
vitormattos committed Jul 17, 2023
1 parent 483f915 commit 410d69b
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 19 deletions.
8 changes: 3 additions & 5 deletions src/components/LeftSidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,12 @@
<NcAppNavigationItem :to="{name: 'profile'}"
:title="t('my_company', 'Profile')"
:open="false"
:allowCollapse="true"
:allow-collapse="true"
icon="icon-user">
<template>
<NcAppNavigationItem
:to="{name: 'security'}"
<NcAppNavigationItem :to="{name: 'security'}"
:title="t('my_company', 'Security')"
icon="icon-password"
/>
icon="icon-password" />
</template>
</NcAppNavigationItem>
</template>
Expand Down
2 changes: 1 addition & 1 deletion src/router/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default new VueRouter({
{
path: '/security',
component: Security,
name: 'security'
name: 'security',
},
],
})
28 changes: 15 additions & 13 deletions src/views/Security.vue
Original file line number Diff line number Diff line change
@@ -1,34 +1,36 @@
<template>
<div>
<div id="personal-settings">
<h2 class="hidden-visually">{{ t('my_company', 'Security') }}</h2>
<h2 class="hidden-visually">
{{ t('my_company', 'Security') }}
</h2>
<PasswordSection />
<AuthTokenSection
:tokens="tokens"
:canCreateToken="canCreateToken"
/>
<AuthTokenSection :tokens="tokens"
:can-create-token="canCreateToken" />
</div>
</div>
</template>

<script>
import PasswordSection from 'apps/settings/src/components/PasswordSection.vue'
import AuthTokenSection from 'apps/settings/src/components/AuthTokenSection.vue'
import { loadState } from '@nextcloud/initial-state'
// eslint-disable-next-line n/no-missing-import, import/no-unresolved
import AuthTokenSection from 'apps/settings/src/components/AuthTokenSection.vue'
// eslint-disable-next-line n/no-missing-import, import/no-unresolved
import PasswordSection from 'apps/settings/src/components/PasswordSection.vue'
export default {
name: 'Profile',
name: 'Security',
components: {
PasswordSection,
AuthTokenSection,
},
data() {
return {
tokens: loadState('settings', 'app_tokens'),
canCreateToken: loadState('settings', 'can_create_app_token'),
}
},
components: {
PasswordSection,
AuthTokenSection,
},
}
</script>

0 comments on commit 410d69b

Please sign in to comment.